/* =============================================
   Login Page CSS
   ============================================= */
.bg-light-gray {
    background-color: #f4f5f6;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 60px 20px;
}

.login-card {
    background: var(--color-white);
    width: 100%;
    max-width: 500px;
    padding: 40px 50px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2b303b;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.login-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form label {
    display: block;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-form input {
    width: 100%;
    height: 48px;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background-color: #fafafa;
    color: #333;
}

.login-form input:focus {
    border-color: #999;
    background-color: #fff;
}

/* Error State */
.form-group.has-error input {
    border-color: #e74c3c;
    background-color: #fffaf9;
}

.form-group.has-error input:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-icon {
    position: absolute;
    right: 15px;
    color: #e74c3c;
    display: none; /* hidden by default */
}

.form-group.has-error .error-icon {
    display: block;
}

.error-msg {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 6px;
    display: none; /* hidden by default */
}

.form-group.has-error .error-msg {
    display: block;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.btn-login {
    height: 48px;
    background: #e74c3c;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-heading);
    padding: 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    background: #c0392b;
}

.forgot-password {
    color: #333;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #e74c3c;
}

.login-divider {
    border-top: 1px solid #eee;
    margin: 30px 0;
}

.signup-link-container {
    font-size: 0.95rem;
    color: #333;
}

.signup-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.signup-link:hover {
    color: #c0392b;
}

@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }
}
