/* ==========================================================================
   FitFlow Design System
   Shared theme for app + guest layouts. Built on Bootstrap 5.3 color modes
   (data-bs-theme="light|dark"), with custom design tokens for surfaces,
   gradients, and gym-branded components.
   ========================================================================== */

:root,
[data-bs-theme="light"] {
    --ff-primary: #4f46e5;
    --ff-primary-dark: #4338ca;
    --ff-primary-light: #6366f1;
    --ff-accent: #f97316;
    --ff-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --ff-gradient-accent: linear-gradient(135deg, #f97316, #fb7185);

    --ff-bg: #f3f4f8;
    --ff-surface: #ffffff;
    --ff-surface-2: #f8fafc;
    --ff-surface-hover: #f1f5f9;
    --ff-border: #e5e7eb;
    --ff-border-soft: #f1f5f9;
    --ff-text: #0f172a;
    --ff-text-muted: #64748b;
    --ff-text-subtle: #94a3b8;

    --ff-sidebar-bg: linear-gradient(165deg, #111827 0%, #1e1b4b 100%);
    --ff-sidebar-fg: #cbd5e1;
    --ff-sidebar-hover: rgba(255, 255, 255, .08);
    --ff-sidebar-border: rgba(255, 255, 255, .08);

    --ff-topbar-bg: rgba(255, 255, 255, .82);
    --ff-topbar-border: #e5e7eb;

    --ff-card-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --ff-card-shadow-hover: 0 12px 28px -8px rgba(15, 23, 42, .14), 0 4px 8px -2px rgba(15, 23, 42, .06);
    --ff-radius: .9rem;
    --ff-radius-sm: .6rem;
    --ff-radius-lg: 1.1rem;

    color-scheme: light;
}

[data-bs-theme="dark"] {
    --ff-primary: #818cf8;
    --ff-primary-dark: #6366f1;
    --ff-primary-light: #a5b4fc;
    --ff-accent: #fb923c;
    --ff-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --ff-gradient-accent: linear-gradient(135deg, #fb923c, #fb7185);

    --ff-bg: #0a0e17;
    --ff-surface: #121826;
    --ff-surface-2: #0e1420;
    --ff-surface-hover: #1a2233;
    --ff-border: #232b3d;
    --ff-border-soft: #1b2333;
    --ff-text: #e5e9f0;
    --ff-text-muted: #94a3b8;
    --ff-text-subtle: #64748b;

    --ff-sidebar-bg: linear-gradient(165deg, #0a0e17 0%, #161327 100%);
    --ff-sidebar-fg: #aab4c7;
    --ff-sidebar-hover: rgba(255, 255, 255, .06);
    --ff-sidebar-border: rgba(255, 255, 255, .06);

    --ff-topbar-bg: rgba(18, 24, 38, .78);
    --ff-topbar-border: #1e2534;

    --ff-card-shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .4);
    --ff-card-shadow-hover: 0 16px 32px -8px rgba(0, 0, 0, .55), 0 4px 10px -2px rgba(0, 0, 0, .4);

    color-scheme: dark;

    /* Re-tune a few Bootstrap tokens for richer dark surfaces */
    --bs-body-bg: var(--ff-bg);
    --bs-body-color: var(--ff-text);
    --bs-border-color: var(--ff-border);
    --bs-tertiary-bg: var(--ff-surface-2);
    --bs-secondary-bg: var(--ff-surface-2);
    --bs-secondary-color: var(--ff-text-muted);
}

* { font-family: var(--ff-font, 'Inter', system-ui, sans-serif); }

html { scroll-behavior: smooth; }

body {
    background: var(--ff-bg);
    color: var(--ff-text);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    transition: background-color .2s ease, color .2s ease;
}

::selection { background: var(--ff-primary); color: #fff; }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ff-border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--ff-text-subtle); }

a { color: var(--ff-primary); }
a:hover { color: var(--ff-primary-dark); }

:focus-visible { outline: 2px solid var(--ff-primary-light); outline-offset: 2px; }

/* ==========================================================================
   Layout shell
   ========================================================================== */
.app-shell { min-height: 100vh; }

.sidebar {
    min-height: 100vh;
    background: var(--ff-sidebar-bg);
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-inline-end: 1px solid var(--ff-sidebar-border);
    z-index: 1040;
    transition: transform .25s ease;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 4px; }

.sidebar .brand {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -.02em;
}
.sidebar .brand-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    max-width: 38px;
    max-height: 38px;
    border-radius: 11px;
    background: var(--ff-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, .45);
    font-size: 1.1rem;
    flex-shrink: 0;
    flex-grow: 0;
    overflow: hidden;
}
.sidebar .brand-icon img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
    display: block;
}
.sidebar .brand small { color: rgba(255, 255, 255, .5); font-weight: 600; letter-spacing: .04em; }

.sidebar-close-btn {
    width: 34px; height: 34px;
    border-radius: 9px;
    border: 1px solid var(--ff-sidebar-border);
    background: transparent;
    color: var(--ff-sidebar-fg);
    display: none;
    align-items: center;
    justify-content: center;
}

.sidebar .nav-link {
    color: var(--ff-sidebar-fg);
    border-radius: .7rem;
    padding: .6rem .85rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 500;
    font-size: .92rem;
    transition: all .15s ease;
    margin-bottom: .15rem;
    position: relative;
}
.sidebar .nav-link:hover { color: #fff; background: var(--ff-sidebar-hover); }
[dir="ltr"] .sidebar .nav-link:hover { transform: translateX(2px); }
[dir="rtl"] .sidebar .nav-link:hover { transform: translateX(-2px); }
.sidebar .nav-link.active {
    color: #fff;
    background: var(--ff-gradient);
    box-shadow: 0 4px 14px rgba(99, 102, 241, .45);
}
.sidebar .nav-link i { font-size: 1.05rem; width: 20px; text-align: center; }
.sidebar .nav-link .nav-badge {
    margin-inline-start: auto;
    font-size: .68rem;
    background: rgba(255, 255, 255, .15);
    padding: .1rem .45rem;
    border-radius: 999px;
}
.sidebar .sidebar-section {
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    padding: .9rem .85rem .4rem;
    display: block;
}
.sidebar hr { border-color: var(--ff-sidebar-border); opacity: 1; }

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .55);
    backdrop-filter: blur(2px);
    z-index: 1035;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.sidebar-backdrop.show { opacity: 1; pointer-events: auto; }

/* Content + topbar */
.content-wrapper { min-height: 100vh; background: var(--ff-bg); }

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: var(--ff-topbar-bg);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--ff-topbar-border);
    padding: .9rem 0;
}
.app-topbar h1 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--ff-text);
}

.topbar-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ff-surface);
    border: 1px solid var(--ff-border);
    color: var(--ff-text-muted);
    transition: all .15s;
    flex-shrink: 0;
}
.topbar-btn:hover { border-color: var(--ff-primary); color: var(--ff-primary); transform: translateY(-1px); box-shadow: var(--ff-card-shadow); }

.theme-toggle-btn .bi-sun-fill { display: none; }
[data-bs-theme="dark"] .theme-toggle-btn .bi-sun-fill { display: inline-block; }
[data-bs-theme="dark"] .theme-toggle-btn .bi-moon-stars-fill { display: none; }

/* Language switch */
.lang-switch { width: auto; padding: 0 .8rem; gap: .3rem; font-weight: 600; font-size: .85rem; letter-spacing: .01em; }
.lang-switch .lang-switch-label { line-height: 1; }
.lang-switch i { font-size: 1rem; }

/* Avatar */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--ff-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
    flex-shrink: 0;
}

.user-menu-btn {
    background: var(--ff-surface);
    border: 1px solid var(--ff-border);
    color: var(--ff-text);
    border-radius: .7rem !important;
}
.user-menu-btn:hover { border-color: var(--ff-primary); }

/* ==========================================================================
   Components
   ========================================================================== */
.card {
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius);
    box-shadow: var(--ff-card-shadow);
    transition: box-shadow .2s ease, transform .2s ease, background-color .2s ease, border-color .2s ease;
    background: var(--ff-surface);
    color: var(--ff-text);
}
.card.hoverable:hover { box-shadow: var(--ff-card-shadow-hover); transform: translateY(-2px); }
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--ff-border-soft);
    padding: 1rem 1.25rem;
    font-weight: 600;
}
.card-footer { background: transparent; border-top: 1px solid var(--ff-border-soft); }
.card-body { padding: 1.25rem; }

.panel-card {
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius);
    background: var(--ff-surface);
    box-shadow: var(--ff-card-shadow);
    overflow: hidden;
}

.table { --bs-table-bg: transparent; margin-bottom: 0; color: var(--ff-text); }
.table thead th {
    background: var(--ff-surface-2);
    color: var(--ff-text-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--ff-border);
    white-space: nowrap;
}
.table tbody td { padding: .85rem 1rem; vertical-align: middle; border-color: var(--ff-border-soft); }
.table tbody tr:hover { background: var(--ff-surface-hover); }
.table-align-middle td { vertical-align: middle; }
.table-light, .table-light > td, .table-light > th { --bs-table-bg: var(--ff-surface-2); color: var(--ff-text-muted); }

/* Badges & tags */
.badge { font-weight: 600; padding: .4em .7em; border-radius: .5rem; letter-spacing: .01em; }
.badge-pill-soft { padding: .35em .75em; border-radius: 999px; }

/* Buttons */
.btn { font-weight: 500; border-radius: .6rem; transition: all .15s ease; }
.btn-primary {
    background: var(--ff-gradient);
    border: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, .3);
}
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(135deg, #5457e5, #7c51e8); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99, 102, 241, .4); }
.btn-outline-primary { color: var(--ff-primary); border-color: var(--ff-primary); }
.btn-outline-primary:hover { background: var(--ff-primary); border-color: var(--ff-primary); color: #fff; }
.btn-outline-secondary { color: var(--ff-text-muted); border-color: var(--ff-border); }
.btn-outline-secondary:hover { background: var(--ff-surface-hover); color: var(--ff-text); border-color: var(--ff-border); }
.btn-light { background: var(--ff-surface); border: 1px solid var(--ff-border); color: var(--ff-text); }
.btn-light:hover { background: var(--ff-surface-hover); }

/* Forms */
.form-control, .form-select {
    border-radius: .6rem;
    border-color: var(--ff-border);
    padding: .6rem .9rem;
    font-size: .95rem;
    transition: all .15s;
    background-color: var(--ff-surface);
    color: var(--ff-text);
}
.form-control:focus, .form-select:focus {
    border-color: var(--ff-primary);
    box-shadow: 0 0 0 .2rem rgba(99, 102, 241, .15);
    background-color: var(--ff-surface);
    color: var(--ff-text);
}
.form-control::placeholder { color: var(--ff-text-subtle); }
.form-label { font-weight: 500; color: var(--ff-text); font-size: .9rem; margin-bottom: .4rem; }
.form-hint { color: var(--ff-text-muted); font-size: .85rem; margin-top: .35rem; }
.form-check-input { background-color: var(--ff-surface); border-color: var(--ff-border); }
.input-group-text { background: var(--ff-surface-2); border-color: var(--ff-border); color: var(--ff-text-muted); }

/* Stat/tile cards */
.stat-card {
    background: var(--ff-surface);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius);
    padding: 1.25rem;
    box-shadow: var(--ff-card-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}
.stat-card:hover { box-shadow: var(--ff-card-shadow-hover); transform: translateY(-2px); }
.stat-card .stat-label { font-size: .78rem; text-transform: uppercase; color: var(--ff-text-muted); font-weight: 600; letter-spacing: .06em; margin-bottom: .5rem; }
.stat-card .stat-value { font-size: 1.9rem; font-weight: 800; color: var(--ff-text); letter-spacing: -.02em; line-height: 1.1; }
.stat-card .stat-trend { font-size: .8rem; font-weight: 600; margin-top: .4rem; }
.stat-card .stat-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem; margin-bottom: .75rem;
}

.soft-bg-primary { background: rgba(99, 102, 241, .12); color: var(--ff-primary); }
.soft-bg-success { background: rgba(16, 185, 129, .14); color: #10b981; }
.soft-bg-warning { background: rgba(245, 158, 11, .14); color: #d97706; }
.soft-bg-danger { background: rgba(239, 68, 68, .14); color: #ef4444; }
.soft-bg-info { background: rgba(14, 165, 233, .14); color: #0ea5e9; }
.soft-bg-secondary { background: var(--ff-surface-2); color: var(--ff-text-muted); }

/* Alerts */
.alert { border-radius: var(--ff-radius); border: none; }
.alert-info { background: rgba(14, 165, 233, .14); color: #0369a1; }
.alert-success { background: rgba(16, 185, 129, .14); color: #047857; }
.alert-warning { background: rgba(245, 158, 11, .16); color: #92400e; }
.alert-danger { background: rgba(239, 68, 68, .14); color: #b91c1c; }
[data-bs-theme="dark"] .alert-info { color: #7dd3fc; }
[data-bs-theme="dark"] .alert-success { color: #6ee7b7; }
[data-bs-theme="dark"] .alert-warning { color: #fcd34d; }
[data-bs-theme="dark"] .alert-danger { color: #fca5a5; }

/* Impersonation banner */
.impersonation-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
    color: #92400e;
    font-weight: 500;
}

/* Dropdown */
.dropdown-menu {
    border-radius: .8rem;
    border: 1px solid var(--ff-border);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .18);
    padding: .4rem;
    background: var(--ff-surface);
}
.dropdown-item { border-radius: .5rem; padding: .5rem .75rem; color: var(--ff-text); }
.dropdown-item:hover, .dropdown-item:focus, .dropdown-item.active { background: var(--ff-surface-hover); color: var(--ff-text); }
.dropdown-divider { border-color: var(--ff-border-soft); }

/* Searchable select (member/staff search-in-dropdown control) */
.searchable-select-menu { max-height: 260px; overflow-y: auto; z-index: 1055; }
.searchable-select-menu.show { display: block; }

/* Modals */
.modal-content { background: var(--ff-surface); border: 1px solid var(--ff-border); border-radius: var(--ff-radius); color: var(--ff-text); }
.modal-header, .modal-footer { border-color: var(--ff-border-soft); }

/* Pagination */
.pagination .page-link { background: var(--ff-surface); border-color: var(--ff-border); color: var(--ff-text); }
.pagination .page-item.active .page-link { background: var(--ff-gradient); border-color: transparent; }
.pagination .page-item.disabled .page-link { background: var(--ff-surface-2); color: var(--ff-text-subtle); }

/* Utility overrides so hard-coded Bootstrap utilities stay theme-correct */
.bg-white { background-color: var(--ff-surface) !important; }
.bg-body { background-color: var(--ff-bg) !important; }
.text-dark { color: var(--ff-text) !important; }
.border { border-color: var(--ff-border) !important; }
hr { border-color: var(--ff-border); opacity: 1; }
.list-group-item { background: var(--ff-surface); border-color: var(--ff-border-soft); color: var(--ff-text); }
.shadow-sm { box-shadow: var(--ff-card-shadow) !important; }

/* SweetAlert2 theming */
.ff-swal-popup {
    border-radius: var(--ff-radius-lg) !important;
    font-family: inherit;
}
.ff-swal-popup .swal2-title { font-weight: 700; font-size: 1.25rem; }
.ff-swal-popup .swal2-html-container { font-size: .95rem; color: var(--ff-text-muted); }
.ff-swal-confirm, .ff-swal-cancel {
    border-radius: .6rem !important;
    font-weight: 600 !important;
    padding: .55rem 1.3rem !important;
    box-shadow: none !important;
}
.ff-swal-list { text-align: start; margin: 0; padding-inline-start: 1.1rem; }
.ff-swal-list li { margin-bottom: .3rem; }
.swal2-toast { border-radius: .7rem !important; box-shadow: var(--ff-card-shadow-hover) !important; }

/* Empty states */
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--ff-text-muted); }
.empty-state i { font-size: 2.75rem; color: var(--ff-text-subtle); margin-bottom: 1rem; display: block; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .3s ease-out; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        inset-inline-start: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        max-width: 85vw;
        transform: translateX(-100%);
        box-shadow: 0 0 40px rgba(0, 0, 0, .35);
    }
    [dir="rtl"] .sidebar { transform: translateX(100%); }
    .sidebar.show { transform: translateX(0); }
    .sidebar-close-btn { display: inline-flex; }
    .content-wrapper { width: 100%; }
}

@media (min-width: 992px) {
    .app-shell.sidebar-collapsed .sidebar {
        display: none;
    }
    .app-shell.sidebar-collapsed .content-wrapper {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .app-topbar h1 { font-size: 1.1rem; }
    .lang-switch .lang-switch-label { display: none; }
    .lang-switch { width: 38px; padding: 0; }
    .user-menu-btn span.d-none { display: none !important; }
    .stat-card { padding: 1rem; }
    .stat-card .stat-value { font-size: 1.5rem; }
    .card-body { padding: 1rem; }
}

@media (max-width: 575.98px) {
    .app-topbar { padding: .7rem 0; }
    .topbar-btn, .theme-toggle-btn, .sidebar-toggle-btn { width: 34px; height: 34px; }
}

/* ==========================================================================
   Guest / auth layout
   ========================================================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    position: relative;
    overflow-x: hidden;
    background: #070b14;
}
.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(55rem 38rem at 88% -12%, rgba(249, 115, 22, .20), transparent 62%),
        radial-gradient(48rem 36rem at -12% 112%, rgba(99, 102, 241, .26), transparent 62%),
        radial-gradient(26rem 26rem at 55% 118%, rgba(239, 68, 68, .12), transparent 60%),
        linear-gradient(165deg, #060910 0%, #0a101d 55%, #0c1322 100%);
    z-index: -2;
}
.auth-page::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .055) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 25%, transparent 72%);
    mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 25%, transparent 72%);
    z-index: -1;
}

/* Floating decorative dumbbells */
.auth-decor { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.auth-decor-dumbbell { position: absolute; fill: rgba(255, 255, 255, .045); }
.auth-decor-dumbbell.decor-a {
    width: 340px; top: -90px; inset-inline-start: -80px;
    transform: rotate(-24deg);
    animation: ffFloat 9s ease-in-out infinite;
}
.auth-decor-dumbbell.decor-b {
    width: 260px; bottom: -70px; inset-inline-end: -60px;
    transform: rotate(18deg);
    fill: rgba(249, 115, 22, .07);
    animation: ffFloat 11s ease-in-out infinite reverse;
}
@keyframes ffFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

.auth-shell {
    width: 100%;
    max-width: 1020px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3.5rem;
    align-items: center;
}

.auth-showcase { color: #fff; min-width: 0; }
.auth-brand { display: inline-flex; align-items: center; gap: .85rem; color: #fff; margin-bottom: 2rem; text-decoration: none; }
.auth-brand-icon {
    width: 52px; height: 52px; min-width: 52px; max-width: 52px; max-height: 52px; border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .18);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem;
    overflow: hidden; flex-shrink: 0; flex-grow: 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
.auth-brand-icon img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
    display: block;
}
.auth-brand h1 { font-size: 1.5rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.auth-brand small { color: rgba(255, 255, 255, .7); font-size: .85rem; display: block; }

.auth-showcase-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.18;
    margin-bottom: 1rem;
}
.auth-showcase-text {
    color: rgba(226, 232, 240, .78);
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 30rem;
    margin-bottom: 1.75rem;
}

.auth-feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .85rem; }
.auth-feature-list li { display: flex; align-items: center; gap: .8rem; color: #e2e8f0; font-weight: 600; font-size: .95rem; }
.auth-feature-icon {
    width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(249, 115, 22, .22), rgba(249, 115, 22, .08));
    border: 1px solid rgba(249, 115, 22, .35);
    color: #fb923c; font-size: 1rem;
}

.auth-panel { min-width: 0; }
.auth-card {
    background: var(--ff-surface);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-lg);
    box-shadow: 0 30px 70px -18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03);
    overflow: hidden;
}
.auth-card .card-body { padding: 2.25rem; }
.auth-title { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; color: var(--ff-text); }
.auth-subtitle { color: var(--ff-text-muted); font-size: .95rem; margin-bottom: 1.5rem; }

.auth-page .btn-primary {
    padding: .75rem 1rem; border-radius: .7rem; font-weight: 600;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 4px 14px rgba(249, 115, 22, .35);
}
.auth-page .btn-primary:hover, .auth-page .btn-primary:focus {
    background: linear-gradient(135deg, #ea6a0b, #e03333);
    box-shadow: 0 6px 20px rgba(249, 115, 22, .45);
}
.auth-page .form-control { border-radius: .7rem; border-width: 1.5px; padding: .75rem 1rem; }
.auth-page .form-control:focus { border-color: #f97316; box-shadow: 0 0 0 .2rem rgba(249, 115, 22, .18); }

.lang-toggle { text-align: center; margin-top: 1.1rem; display: flex; justify-content: center; gap: .6rem; }
.lang-switch-btn, .theme-switch-btn {
    display: inline-flex; align-items: center; gap: .45rem;
    border-radius: 999px; padding: .45rem 1.1rem; font-size: .88rem; font-weight: 600;
    background-color: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all .15s ease;
}
.lang-switch-btn:hover, .theme-switch-btn:hover { background-color: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .45); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.lang-switch-btn i, .theme-switch-btn i { font-size: 1rem; }

@media (max-width: 991.98px) {
    .auth-shell { max-width: 460px; grid-template-columns: 1fr; gap: 0; }
    .auth-showcase { text-align: center; }
    .auth-brand { margin-bottom: 1.5rem; }
    .auth-showcase-title, .auth-showcase-text, .auth-feature-list { display: none; }
    .auth-decor-dumbbell.decor-a { width: 220px; }
    .auth-decor-dumbbell.decor-b { width: 170px; }
}

@media (max-width: 420px) {
    .auth-card .card-body { padding: 1.5rem; }
    .auth-brand-icon { width: 42px; height: 42px; font-size: 1.25rem; }
    .auth-brand h1 { font-size: 1.25rem; }
}
