:root {
    --primary: #6366f1;
    --primary-soft: rgba(99, 102, 241, 0.15);
}

.login-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, #1e1f25 100%);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 550px;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--primary);
    filter: blur(60px);
    opacity: 0.2;
    border-radius: 50%;
    pointer-events: none;
}

.form-control {
    background-color: #0f1014;
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
    background-color: #0f1014;
    color: white;
}

/* Autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0f1014 inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-label {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    margin-left: 0.2rem;
}

.btn-save {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-save:hover {
    filter: brightness(110%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-soft);
    color: white;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
    position: relative;
}

.section-title {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1f25;
    /* Match card bg approx */
    padding: 0 10px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 10px;
}

input::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}




.forgot-link {
    color: #a0a0a0;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--primary);
}