/* ============================================================
   FLAZLE DESIGN SYSTEM
   ============================================================ */

:root {
    --flz-primary: #6c5ce7;
    --flz-primary-dark: #5340c0;
    --flz-primary-light: #a29bfe;
    --flz-primary-glow: rgba(108, 92, 231, 0.25);
    --flz-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --flz-gradient-warm: linear-gradient(135deg, #6c5ce7, #fd79a8);
    --flz-surface: #ffffff;
    --flz-surface-alt: #f8f9fc;
    --flz-text: #1a1a2e;
    --flz-text-muted: #6b7280;
    --flz-border: #e5e7eb;
    --flz-radius: 12px;
    --flz-radius-lg: 20px;
    --flz-radius-pill: 50px;
    --flz-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --flz-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --flz-shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --flz-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--flz-text);
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   BOOTSTRAP OVERRIDES
   ============================================================ */

a, .btn-link { color: var(--flz-primary); }

.btn-primary {
    color: #fff;
    background-color: var(--flz-primary);
    border-color: var(--flz-primary);
    font-weight: 600;
}
.btn-primary:hover, .btn-primary:active {
    background-color: var(--flz-primary-dark);
    border-color: var(--flz-primary-dark);
}

.btn-outline-primary {
    color: var(--flz-primary);
    border-color: var(--flz-primary);
    font-weight: 600;
}
.btn-outline-primary:hover {
    background-color: var(--flz-primary);
    border-color: var(--flz-primary);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--flz-primary-light);
}

.content { padding-top: 1.1rem; }
h1:focus { outline: none; }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after { content: "An error has occurred." }

.darker-border-checkbox.form-check-input { border-color: #929292; }
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder { color: var(--bs-secondary-color); text-align: end; }
.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder { text-align: start; }


/* ============================================================
   APP SHELL - MOBILE FIRST
   ============================================================ */

/* Page containers */
.app-page { padding: 16px; }
.app-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.app-page-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.3px;
}

/* Profile Card - modern tinder-style */
.profile-card {
    border-radius: var(--flz-radius-lg);
    overflow: hidden;
    background: #fff;
    border: none;
    box-shadow: var(--flz-shadow);
    transition: transform var(--flz-transition), box-shadow var(--flz-transition);
}
.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--flz-shadow-lg);
}
.profile-card-img-wrapper {
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.profile-card-img {
    height: 280px;
    object-fit: cover;
    width: 100%;
}
.profile-card-compact .profile-card-img { height: 200px; }
.profile-card-placeholder {
    background: var(--flz-gradient);
    color: #fff;
}
.profile-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    pointer-events: none;
}
.profile-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    color: #fff;
    z-index: 1;
}
.profile-card-badge-online {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: #2ecc71;
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 1;
}

/* Profile action buttons - big touch targets */
.profile-card-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px 16px 16px;
}
.profile-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--flz-shadow-sm);
    -webkit-tap-highlight-color: transparent;
}
.profile-action-btn:active { transform: scale(0.92); }
.profile-action-pass { background: #fff; color: #e74c3c; border: 1.5px solid #fde8e8; }
.profile-action-pass:hover { background: #fde8e8; }
.profile-action-view { background: #fff; color: var(--flz-primary); border: 1.5px solid #ede8ff; }
.profile-action-view:hover { background: #ede8ff; }
.profile-action-like { background: var(--flz-primary); color: #fff; }
.profile-action-like:hover { background: var(--flz-primary-dark); }

/* Anime avatar */
.anime-avatar { position: relative; display: inline-block; }
.min-vh-75 { min-height: 75vh; }
.object-fit-cover { object-fit: cover; }

/* Chat fullscreen layout — immersive, no app header or tab bar */
.chat-fullscreen {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    background: #fff;
}
/* Chat input bar pinned to bottom */
.chat-fullscreen .chat-input-bar {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid var(--flz-border);
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

/* Mobile-friendly list items */
.list-group-item {
    border-left: 0;
    border-right: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Touch-friendly form controls */
.form-control, .form-select {
    min-height: 44px; /* Apple HIG minimum touch target */
}

/* Safe area padding for mobile */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .app-main {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }
}


/* ============================================================
   LANDING PAGE
   ============================================================ */

.landing-page {
    overflow-x: hidden;
    background: #fff;
}

/* --- Navbar --- */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--flz-text);
    text-decoration: none;
    letter-spacing: -0.3px;
}
.landing-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
}
.landing-nav-link {
    color: var(--flz-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--flz-transition);
}
.landing-nav-link:hover { color: var(--flz-primary); }

/* --- Hero --- */
.landing-hero {
    position: relative;
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.landing-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 40%, rgba(108,92,231,0.08), transparent),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(253,121,168,0.06), transparent);
}
.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108,92,231,0.08);
    color: var(--flz-primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: var(--flz-radius-pill);
    margin-bottom: 24px;
}
.landing-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--flz-text);
}
.landing-gradient-text {
    background: var(--flz-gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.landing-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--flz-text-muted);
    margin-bottom: 32px;
    max-width: 520px;
}
.landing-cta-btn {
    font-weight: 700;
    padding: 14px 32px;
    font-size: 1.05rem;
    box-shadow: 0 4px 24px var(--flz-primary-glow);
    transition: all var(--flz-transition);
}
.landing-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--flz-primary-glow);
}

/* Social proof */
.landing-social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
.landing-avatars { display: flex; }
.landing-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -6px;
    border: 2px solid #fff;
}
.landing-avatar:first-child { margin-left: 0; }
.landing-social-proof-text {
    color: var(--flz-text-muted);
    font-size: 0.85rem;
}

/* Phone mockup */
.landing-hero-visual {
    position: relative;
    padding: 20px;
}
.landing-phone-mockup {
    width: 280px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--flz-shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.landing-phone-screen { padding: 20px 16px; }
.landing-phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.landing-phone-card {
    background: var(--flz-surface-alt);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}
.landing-phone-card-img { height: 200px; overflow: hidden; }
.landing-anime-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dfe6e9 0%, #b2bec3 50%, #a29bfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.7);
}
.landing-phone-card-info {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.landing-phone-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
}
.landing-phone-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--flz-shadow);
}
.landing-phone-btn-pass { background: #fff; color: #e74c3c; }
.landing-phone-btn-like { background: var(--flz-primary); color: #fff; }

/* Floating cards */
.landing-float-card {
    position: absolute;
    background: #fff;
    padding: 12px 20px;
    border-radius: var(--flz-radius);
    box-shadow: var(--flz-shadow-lg);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}
.landing-float-card-1 { top: 25%; left: -10%; animation-delay: 0s; }
.landing-float-card-2 { bottom: 20%; right: -5%; animation-delay: 2s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Trust bar --- */
.landing-trust-bar {
    background: var(--flz-text);
    padding: 40px 0;
}
.landing-stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.landing-stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    margin-top: 2px;
}

/* --- Section styles --- */
.landing-section { padding: 96px 0; }
.landing-section-alt { background: var(--flz-surface-alt); }
.landing-section-badge {
    display: inline-block;
    background: rgba(108,92,231,0.08);
    color: var(--flz-primary);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 16px;
    border-radius: var(--flz-radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}
.landing-section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.landing-section-subtitle {
    font-size: 1.1rem;
    color: var(--flz-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* --- How it works --- */
.landing-step-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--flz-border);
    border-radius: var(--flz-radius-lg);
    padding: 40px 28px 32px;
    text-align: center;
    height: 100%;
    transition: all var(--flz-transition);
}
.landing-step-card:hover {
    border-color: var(--flz-primary-light);
    box-shadow: var(--flz-shadow-lg);
    transform: translateY(-4px);
}
.landing-step-number {
    position: absolute;
    top: -16px;
    left: 28px;
    width: 32px;
    height: 32px;
    background: var(--flz-gradient);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.landing-step-icon {
    width: 64px;
    height: 64px;
    background: rgba(108,92,231,0.08);
    color: var(--flz-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
}
.landing-step-card h4 { font-weight: 700; margin-bottom: 12px; font-size: 1.15rem; }
.landing-step-card p { color: var(--flz-text-muted); font-size: 0.95rem; line-height: 1.65; margin: 0; }

/* --- Features --- */
.landing-feature-card {
    background: #fff;
    border: 1px solid var(--flz-border);
    border-radius: var(--flz-radius-lg);
    padding: 28px;
    height: 100%;
    transition: all var(--flz-transition);
}
.landing-feature-card:hover {
    box-shadow: var(--flz-shadow);
    transform: translateY(-2px);
}
.landing-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.landing-feature-card h5 { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.landing-feature-card p { color: var(--flz-text-muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* --- Pricing --- */
.landing-price-card {
    background: #fff;
    border: 1px solid var(--flz-border);
    border-radius: var(--flz-radius-lg);
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    position: relative;
    transition: all var(--flz-transition);
}
.landing-price-card:hover {
    box-shadow: var(--flz-shadow-lg);
    transform: translateY(-4px);
}
.landing-price-card-featured {
    border-color: var(--flz-primary);
    box-shadow: 0 0 0 1px var(--flz-primary), var(--flz-shadow);
}
.landing-price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--flz-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: var(--flz-radius-pill);
    white-space: nowrap;
}
.landing-price-card h5 { font-weight: 700; margin-bottom: 8px; }
.landing-price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.landing-price small { font-size: 0.9rem; font-weight: 500; color: var(--flz-text-muted); }
.landing-price-card ul { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.landing-price-card li {
    padding: 8px 0;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 8px;
}
.landing-price-card li:last-child { border-bottom: none; }

/* --- FAQ --- */
.landing-faq-item {
    border: 1px solid var(--flz-border);
    border-radius: var(--flz-radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--flz-transition);
}
.landing-faq-item[open] {
    border-color: var(--flz-primary-light);
    box-shadow: var(--flz-shadow-sm);
}
.landing-faq-item summary {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--flz-transition);
}
.landing-faq-item summary:hover { background: var(--flz-surface-alt); }
.landing-faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--flz-text-muted);
    transition: transform var(--flz-transition);
}
.landing-faq-item[open] summary::after { transform: rotate(45deg); }
.landing-faq-item summary::-webkit-details-marker { display: none; }
.landing-faq-item p {
    padding: 0 24px 18px;
    margin: 0;
    color: var(--flz-text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- Final CTA --- */
.landing-cta {
    padding: 96px 0;
    background: var(--flz-gradient);
    position: relative;
    overflow: hidden;
}
.landing-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.08), transparent 50%);
}
.landing-cta-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
}
.landing-cta-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    position: relative;
}
.landing-cta .landing-cta-btn {
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    color: var(--flz-primary);
    font-weight: 700;
}

/* --- Footer --- */
.landing-footer {
    background: var(--flz-text);
    color: #fff;
    padding: 56px 0 32px;
}
.landing-footer .landing-logo { color: #fff; }
.landing-footer h6 { color: rgba(255,255,255,0.6); }
.landing-footer a.text-muted { color: rgba(255,255,255,0.45) !important; }
.landing-footer a.text-muted:hover { color: #fff !important; }


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991.98px) {
    .landing-hero { padding: 120px 0 60px; min-height: auto; }
    .landing-hero-visual { margin-top: 40px; }
    .landing-float-card-1 { left: 5%; }
    .landing-float-card-2 { right: 5%; }
}

@media (max-width: 575.98px) {
    .landing-hero-title { font-size: 2rem; }
    .landing-section { padding: 64px 0; }
    .landing-float-card { display: none; }
    .landing-phone-mockup { width: 240px; }
}


/* ============================================================
   AUTH PAGES (Login, Register, ForgotPassword, Confirmation)
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--flz-surface-alt);
    padding: 24px;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 880px;
    background: #fff;
    border-radius: var(--flz-radius-lg);
    box-shadow: var(--flz-shadow-lg);
    overflow: hidden;
    min-height: 560px;
}

.auth-container-narrow {
    max-width: 480px;
}

/* Brand panel (left side) */
.auth-brand-panel {
    width: 380px;
    flex-shrink: 0;
    background: var(--flz-gradient);
    color: #fff;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06), transparent 50%);
}
.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    position: relative;
    margin-bottom: 48px;
}
.auth-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
}
.auth-brand-content {
    position: relative;
    flex: 1;
}
.auth-brand-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.auth-brand-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
}
.auth-features {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.auth-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}
.auth-feature i { font-size: 1.1rem; }
.auth-brand-footer {
    position: relative;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.82rem;
    opacity: 0.7;
}

/* Form panel (right side) */
.auth-form-panel {
    flex: 1;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
}
.auth-form-header {
    margin-bottom: 28px;
}
.auth-form-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}
.auth-form-header p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Input groups with icon */
.auth-input-group {
    position: relative;
}
.auth-input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--flz-text-muted);
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}
.auth-input-group .form-control {
    padding-left: 42px;
    height: 48px;
    border-radius: 10px;
    border: 1.5px solid var(--flz-border);
    font-size: 0.95rem;
    transition: all var(--flz-transition);
}
.auth-input-group .form-control:focus {
    border-color: var(--flz-primary);
    box-shadow: 0 0 0 3px var(--flz-primary-glow);
}
.auth-input-group .form-control::placeholder {
    color: #b0b5c0;
}

/* Submit button */
.auth-submit-btn {
    height: 48px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 16px var(--flz-primary-glow);
    transition: all var(--flz-transition);
}
.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--flz-primary-glow);
}

/* Alt button (passkey, etc.) */
.auth-alt-btn {
    height: 44px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--flz-text-muted);
    font-size: 0.82rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--flz-border);
}

/* Footer links */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--flz-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Icon circle (for confirmation/forgot pages) */
.auth-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(108,92,231,0.1);
    color: var(--flz-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.auth-icon-circle-success {
    background: rgba(46,204,113,0.1);
    color: #2ecc71;
}

/* Info box */
.auth-info-box {
    background: var(--flz-surface-alt);
    border: 1px solid var(--flz-border);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.85rem;
    color: var(--flz-text-muted);
    display: flex;
    align-items: flex-start;
    text-align: left;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        max-width: 480px;
    }
    .auth-brand-panel {
        width: 100%;
        padding: 28px 24px;
        min-height: auto;
    }
    .auth-brand-content h2 { font-size: 1.3rem; }
    .auth-brand-content p { display: none; }
    .auth-features { display: none; }
    .auth-brand-footer { display: none; }
    .auth-form-panel { padding: 28px 24px; }
}


/* ============================================================
   404 NOT FOUND PAGE
   ============================================================ */

.notfound-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--flz-surface-alt);
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.notfound-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 30% 20%, rgba(108,92,231,0.06), transparent),
        radial-gradient(ellipse 40% 40% at 70% 80%, rgba(253,121,168,0.05), transparent);
    pointer-events: none;
}

.notfound-content {
    text-align: center;
    position: relative;
    max-width: 480px;
}

.notfound-icon {
    font-size: 3.5rem;
    color: var(--flz-primary-light);
    margin-bottom: 8px;
    animation: notfound-bounce 2s ease-in-out infinite;
}
@keyframes notfound-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.notfound-title {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    letter-spacing: -3px;
    background: var(--flz-gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.notfound-subtitle {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--flz-text);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.notfound-text {
    font-size: 1rem;
    color: var(--flz-text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.notfound-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.notfound-btn {
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
}

.notfound-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--flz-text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0.5;
    transition: opacity var(--flz-transition);
}
.notfound-logo:hover {
    opacity: 0.8;
    color: var(--flz-text-muted);
}
.notfound-logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain;
}
