/* ========================================================================== 
   assets/css/login.css
   Professional and responsive CSS for login page
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset some default styles
-------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Body styling
   - Center login box vertically & horizontally
   - Background color light grey
-------------------------------------------------------------------------- */
body {
    background: #f4f7f8;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --------------------------------------------------------------------------
   3. Login container
   - Max width for large screens
   - Padding for spacing
-------------------------------------------------------------------------- */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* --------------------------------------------------------------------------
   4. Login box
   - White background
   - Rounded corners
   - Box shadow for professional look
   - Center text
-------------------------------------------------------------------------- */
.login-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
}

/* --------------------------------------------------------------------------
   5. Logo
   - Width max 100px
   - Auto height to maintain ratio
   - Margin bottom for spacing
-------------------------------------------------------------------------- */
.login-box .logo {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
}

/* --------------------------------------------------------------------------
   6. Site name
   - Font size & weight
   - Margin bottom for spacing
   - Text color
-------------------------------------------------------------------------- */
.login-box .site-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}

/* --------------------------------------------------------------------------
   7. Form inputs
   - Full width
   - Padding for touch devices
   - Rounded borders
   - Margin between inputs
-------------------------------------------------------------------------- */
.login-box form input[type="email"],
.login-box form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   8. Submit button
   - Full width
   - Background color primary
   - Rounded corners
   - Hover effect
-------------------------------------------------------------------------- */
.login-box form button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background-color: #007bff;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.login-box form button:hover {
    background-color: #0056b3;
}

/* --------------------------------------------------------------------------
   9. Flash messages
   - Margin top
   - Red for error, green for success
-------------------------------------------------------------------------- */
#error-msg {
    margin-top: 15px;
}

#error-msg p {
    font-size: 14px;
    color: #e74c3c; /* default error color */
}

#error-msg p.success {
    color: #2ecc71; /* success color */
}

/* --------------------------------------------------------------------------
   10. Responsive design for mobile devices
   - Adjust padding & font-size
-------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .login-box .site-name {
        font-size: 20px;
    }
}
