/* css/login.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f7eaea; /* Light, reddish background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.login-container {
    width: 100%;
    max-width: 420px; /* Max width for the login box */
}

.login-box {
    background-color: #ffffff;
    padding: 30px 35px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Softer, more professional shadow */
    text-align: center;
}

.login-header {
    margin-bottom: 25px;
}

.login-logo {
    font-size: 3rem;
    color: #e74c3c; /* Primary reddish color for the logo */
    margin-bottom: 10px;
}

.login-header h2 {
    margin: 0 0 5px 0;
    font-size: 1.8em;
    color: #4a2a2a; /* Darker red-brown */
    font-weight: 600;
}

.login-header p {
    margin: 0;
    font-size: 0.95em;
    color: #8b5f5f; /* Muted reddish-brown */
}

.input-group {
    margin-bottom: 20px;
    text-align: left; /* Align labels and inputs to the left */
}

.input-group label {
    display: block;
    font-size: 0.9em;
    color: #4a2a2a; /* Darker red-brown */
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group label i {
    margin-right: 8px;
    color: #e74c3c; /* Icon color consistent with primary reddish */
}

.input-group input[type="text"],
.input-group input[type="password"],
.input-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 1px solid #d4a7a7; /* Reddish border */
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus,
.input-group select:focus {
    border-color: #e74c3c; /* Primary reddish focus */
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25); /* Reddish focus glow */
    outline: none;
}

.input-group select {
    appearance: none; /* Remove default select arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234a2a2a%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'); /* Darker red-brown arrow */
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px 10px;
    padding-right: 40px; /* Make space for custom arrow */
}
.input-group select option[disabled] {
    color: #999;
}

.error-message {
    color: #c0392b; /* Darker red for error */
    font-size: 0.8em;
    margin-top: 5px;
    height: 1em; /* Reserve space to prevent layout shifts */
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85em;
}

.remember-me {
    color: #4a2a2a; /* Darker red-brown */
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 6px;
    accent-color: #e74c3c; /* Primary reddish for checkboxes */
}

.forgot-password {
    color: #e74c3c; /* Primary reddish for link */
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #c0392b; /* Darker reddish on hover */
    text-decoration: underline;
}

.login-btn {
    background-color: #e74c3c; /* Primary reddish button color */
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.1em;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn i {
    margin-right: 8px;
}

.login-btn:hover {
    background-color: #c0392b; /* Darker reddish on hover */
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3); /* Reddish shadow on hover */
}

.login-btn:active {
    background-color: #a52a2a; /* Even darker reddish on active */
}

.login-footer {
    margin-top: 30px;
    font-size: 0.8em;
    color: #8b5f5f; /* Muted reddish-brown */
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-box {
        padding: 25px 20px;
    }
    .login-header h2 {
        font-size: 1.6em;
    }
    .login-logo {
        font-size: 2.5rem;
    }
    .input-group input[type="text"],
    .input-group input[type="password"],
    .input-group select {
        padding: 10px 12px;
    }
    .login-btn {
        padding: 10px 15px;
        font-size: 1em;
    }
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}