.login-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-top: -5vh;
}

.login-card {
    background-color: white;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    z-index: 10;
    
    /* Re-using the animation from style.css */
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.login-card h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.login-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--dark-text);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 87, 51, 0.1);
}

.login-btn {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--dark-text);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    font-family: 'Outfit', sans-serif;
}

.login-btn:hover {
    background-color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.error-message {
    background-color: #fee2e2;
    color: #ef4444;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.success-message {
    background-color: #dcfce7;
    color: #22c55e;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Password Visibility Toggle & Security */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper .form-control {
    padding-right: 44px;
}

.toggle-password-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    outline: none;
    z-index: 5;
}

.toggle-password-btn:hover {
    color: var(--primary-orange);
    background: rgba(255, 87, 51, 0.08);
}

.toggle-password-btn svg {
    width: 20px;
    height: 20px;
    stroke: #6b7280;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.toggle-password-btn:hover svg {
    stroke: var(--primary-orange);
}

.password-hint-container {
    margin-top: 6px;
}

.password-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-text);
    flex-wrap: wrap;
    gap: 6px;
}

.suggest-password-btn {
    background: none;
    border: none;
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    transition: opacity 0.2s, background 0.2s;
}

.suggest-password-btn:hover {
    opacity: 0.85;
    background: rgba(255, 87, 51, 0.08);
}

.password-strength-bar {
    height: 4px;
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

/* Mobile Responsiveness for Login Page */
@media (max-width: 500px) {
    .login-wrapper {
        padding: 1rem;
        margin-top: -2vh;
    }
    .login-card {
        padding: 2rem 1.25rem;
    }
    .login-card h2 {
        font-size: 1.75rem;
    }
    .login-card p {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
}
