﻿/* =========================================
   1. AUTH THEME: CUSTOM PROPERTIES & RESET
========================================= */
:root {
    --brand-accent: #3b82f6;
    --brand-accent-glow: #60a5fa;
    --brand-purple: #8b5cf6;
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.4);
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100%;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #090d16;
}

/* =========================================
   2. KEYFRAME ANIMATIONS
========================================= */
@keyframes bgZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(2deg);
    }
}

@keyframes orbMove1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, -50px) scale(1.15);
    }
}

@keyframes orbMove2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50px, 30px) scale(0.9);
    }
}

@keyframes pulseGreen {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
    }
}

@keyframes textGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shakeError {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-6px);
    }

    40%, 80% {
        transform: translateX(6px);
    }
}

.alert-shake {
    animation: shakeError 0.4s ease-in-out;
}

/* =========================================
   3. BACKGROUND & AMBIENT EFFECTS (FIXED SCROLLING)
========================================= */
.viewport-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0; /* Space at top/bottom for mobile scrolling */
    overflow-x: hidden;
}

.bg-banner {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: bgZoom 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.65) contrast(1.1);
}

.bg-overlay-gradient {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(20, 20, 20, 0.3) 0%, rgba(0, 0, 0, 0.46) 80%);
    z-index: 1;
}

.bg-grid-pattern {
    position: fixed;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

.orb-primary {
    width: 550px;
    height: 550px;
    top: -100px;
    left: -50px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 70%);
    animation: orbMove1 16s ease-in-out infinite;
}

.orb-secondary {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: 5%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
    animation: orbMove2 20s ease-in-out infinite;
}

/* =========================================
   4. LAYOUT & BRANDING (LEFT SIDE)
========================================= */
.layout-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1380px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3.5rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    color: #ffffff;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #93c5fd;
    background: rgba(30, 58, 138, 0.4);
    border: 1px solid rgba(147, 197, 253, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(12px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulseGreen 2s infinite;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -1.2px;
    outline: none;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #c084fc 50%, #38bdf8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textGradientShift 8s ease infinite;
}

.hero-subtitle {
    color: white;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-footer {
    position: fixed;
    bottom: 2rem;
    left: 2.5rem;
    z-index: 10;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.825rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .hero-footer .dot {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
    }

/* =========================================
   5. GLASS PANELS & CARDS (RIGHT SIDE)
========================================= */
.form-wrapper {
    flex: 1;
    width: 100%;
    max-width: 430px;
    animation: cardSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-card-container {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 2.5rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.card-heading {
    color: #0f172a;
    font-size: 1.85rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 0.35rem;
}

.card-subheading {
    color: #64748b;
    text-align: center;
    font-size: 0.925rem;
    margin-bottom: 2rem;
}

/* INSTRUCTIONS GLASS PANEL */
.instructions-glass-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.9);
}

.instructions-header {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #60a5fa;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.instructions-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #cbd5e1;
}

/* =========================================
   6. LOGO & PROFILE PICTURES
========================================= */
/* Glowing circular avatar for the login page */
.brand-logo-wrapper {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
    filter: blur(12px);
}

.brand-logo-img {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.profile-upload-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.profile-pic-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.35);
    margin: 0 auto;
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
}

.empty-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-pic-overlay {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 32px;
    height: 32px;
    background: #2563eb;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .profile-pic-overlay:hover {
        transform: scale(1.1);
        background: #1d4ed8;
    }

/* =========================================
   7. FORM INPUTS (TRANSPARENT WITH DARK TEXT)
========================================= */
.custom-input .mud-input-root {
    background-color: transparent !important;
    border-radius: 14px;
}

.custom-input input {
    color: #0f172a !important;
    font-weight: 500;
}

.custom-input .mud-input-outlined-border {
    border-radius: 14px !important;
    border-color: #cbd5e1 !important;
    transition: all 0.25s ease;
}

.custom-input:hover .mud-input-outlined-border {
    border-color: #94a3b8 !important;
}

.custom-input.mud-input-focused .mud-input-outlined-border {
    border-color: #3b82f6 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

/* =========================================
   8. BUTTONS (FIXED WHITE TEXT)
========================================= */
.action-btn {
    height: 52px;
    border-radius: 14px !important;
    font-weight: 700;
    font-size: 1rem;
    text-transform: none !important;
    background: linear-gradient(135deg, #2563eb, #3b82f6, #7c3aed) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

    .action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.55);
    }

.action-btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.4);
}

    .action-btn-success:hover {
        box-shadow: 0 12px 28px -4px rgba(16, 185, 129, 0.55);
    }

.secondary-btn {
    height: 48px;
    border-radius: 12px !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: none !important;
    border: 2px solid #e2e8f0 !important;
    color: #475569 !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
}

    .secondary-btn:hover {
        border-color: #cbd5e1 !important;
        background: #f8fafc !important;
        color: #0f172a !important;
    }

.logout-btn-styled {
    height: 48px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    background: transparent;
    border: 2px solid #fee2e2;
    color: #ef4444 !important;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

    .logout-btn-styled:hover {
        background: #fef2f2;
        border-color: #f87171;
    }

.social-btn {
    color: #475569 !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease !important;
}

    .social-btn:hover {
        background: #ffffff;
        color: #2563eb !important;
        border-color: #bfdbfe;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    }

/* DIVIDER */
.modern-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.75rem 0;
}

    .modern-divider::before, .modern-divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #e2e8f0;
    }

    .modern-divider span {
        padding: 0 14px;
        color: #94a3b8;
        font-size: 0.725rem;
        font-weight: 700;
        letter-spacing: 1px;
    }

/* =========================================
   9. VERIFICATION & RECOVERY SPECIFICS
========================================= */
.verification-panel {
    background: rgba(241, 245, 249, 0.6);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
}

.verify-title {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.1rem 0;
    letter-spacing: -0.2px;
}

.verify-subtitle {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

.password-strength-panel {
    background: rgba(241, 245, 249, 0.7);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.strength-title {
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.strength-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.775rem;
    color: #64748b;
}

    .strength-list li {
        display: flex;
        align-items: center;
        margin-top: 0.4rem;
    }

/* =========================================
   10. RESPONSIVE DESIGN (MOBILE FIXES)
========================================= */
@media (max-width: 1024px) {
    .layout-container {
        justify-content: center;
        padding: 1.5rem;
    }

    .hero-content, .hero-footer {
        display: none; /* Hide hero on small screens */
    }

    .form-wrapper {
        flex: 1;
        max-width: 520px;
    }

    .glass-card-container {
        padding: 1.75rem 1.25rem;
    }
}
