/* Source: login-project.html block 1 */
.auth-glow-1 { background: rgba(251,191,36,0.05); }
        .auth-glow-2 { background: rgba(53,217,107,0.03); }

/* Source: login-project.html block 2 */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;700&family=DM+Mono:wght@400;500&display=swap');

/* ─── Variables ─── */
:root {
    --bg:           #060608;
    --surface:      #0e0e12;
    --surface2:     #141418;
    --surface3:     #1a1a20;
    --border:       rgba(255,255,255,0.07);
    --border2:      rgba(255,255,255,0.13);
    --text:         #f0f0f0;
    --muted:        #555560;
    --muted2:       #888894;
    --accent:       #35d96b;
    --accent2:      #2fc95f;
    --gold:         #fbbf24;
    --gold2:        #f59e0b;
    --danger:       #ff4d4d;
    --danger-dim:   rgba(255,77,77,0.1);
    --success:      #35d96b;
    --success-dim:  rgba(53,217,107,0.1);
    --warn:         #fbbf24;
    --warn-dim:     rgba(251,191,36,0.1);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --font-mono:    'DM Mono', monospace;
    --sidebar-w:    240px;
    --topbar-h:     64px;
    --radius:       12px;
    --radius-lg:    18px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
::selection { background: var(--accent); color: #000; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 2px; }

/* ─── Layout ─── */
.dash-layout { display: flex; min-height: 100vh; }

/* ─── Sidebar ─── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 40;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.sidebar-logo span { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.05em; }

.sidebar-section {
    padding: 20px 12px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted2);
    margin: 2px 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.sidebar-link:hover { background: var(--surface2); color: var(--text); }
.sidebar-link.active { background: var(--surface2); color: var(--text); border: 1px solid var(--border2); }
.sidebar-link.active iconify-icon { color: var(--accent); }
.sidebar-link iconify-icon { font-size: 17px; flex-shrink: 0; }

.sidebar-link.danger { color: var(--danger); }
.sidebar-link.danger:hover { background: var(--danger-dim); }

.sidebar-bottom {
    margin-top: auto;
    padding: 16px 8px;
    border-top: 1px solid var(--border);
}

/* ─── Main content ─── */
.main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ─── Topbar ─── */
.topbar {
    height: var(--topbar-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 30;
}

.topbar-title { font-size: 16px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

/* ─── Page content ─── */
.page { padding: 32px 28px; }
.page-header { margin-bottom: 28px; }
.page-title { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.04em; margin-bottom: 4px; }
.page-sub { font-size: 13px; color: var(--muted2); }

/* ─── Cards ─── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.card-sm { padding: 16px 20px; }

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border2); }
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted2); margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 2.2rem; letter-spacing: -0.02em; line-height: 1; }
.stat-sub { font-size: 12px; color: var(--muted2); margin-top: 6px; }

/* ─── Grid helpers ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    border: 1px solid var(--border2);
    background: var(--surface2);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn:hover { background: var(--surface3); border-color: rgba(255,255,255,0.2); }

.btn-primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 700;
}
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); }

.btn-gold {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    font-weight: 700;
}
.btn-gold:hover { background: var(--gold2); border-color: var(--gold2); }

.btn-danger {
    background: var(--danger-dim);
    color: var(--danger);
    border-color: rgba(255,77,77,0.25);
}
.btn-danger:hover { background: rgba(255,77,77,0.2); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface2); }

/* ─── Badges ─── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-green  { background: rgba(53,217,107,0.1);   color: var(--accent); border: 1px solid rgba(53,217,107,0.2); }
.badge-gold   { background: rgba(251,191,36,0.1);  color: var(--gold);   border: 1px solid rgba(251,191,36,0.2); }
.badge-red    { background: rgba(255,77,77,0.1);   color: var(--danger); border: 1px solid rgba(255,77,77,0.2); }
.badge-muted  { background: var(--surface2);       color: var(--muted2); border: 1px solid var(--border); }
.badge-blue   { background: rgba(96,165,250,0.1);  color: #60a5fa;       border: 1px solid rgba(96,165,250,0.2); }

/* ─── Tables ─── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
    text-align: left;
    padding: 10px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted2);
    border-bottom: 1px solid var(--border);
}
tbody td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface2); }

/* ─── Forms ─── */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted2);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 11px; color: var(--muted2); margin-top: 5px; }

/* ─── Progress bar ─── */
.progress { height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width 0.4s; }
.progress-fill.gold { background: var(--gold); }

/* ─── Avatar ─── */
.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border2);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

/* ─── Rank badge inline ─── */
.rank-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}
.rank-inline img { width: 20px; height: 20px; }

/* ─── Empty state ─── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted2);
}
.empty-state iconify-icon { font-size: 40px; color: var(--muted); margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 13px; line-height: 1.6; max-width: 320px; margin: 0 auto 20px; }

/* ─── Notification dot ─── */
.notif-dot {
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ─── Auth pages ─── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.auth-glow-1 {
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(53,217,107,0.05);
    top: -150px; left: -150px;
    filter: blur(80px);
    pointer-events: none;
}

.auth-glow-2 {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(251,191,36,0.04);
    bottom: -100px; right: -100px;
    filter: blur(80px);
    pointer-events: none;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    justify-content: center;
}

.auth-logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.auth-logo span { font-family: var(--font-display); font-size: 18px; letter-spacing: 0; }

.auth-title { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 0.04em; margin-bottom: 6px; text-align: center; }
.auth-sub { font-size: 13px; color: var(--muted2); text-align: center; margin-bottom: 28px; line-height: 1.6; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.btn-x {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px;
    border-radius: var(--radius);
    background: #000;
    border: 1px solid var(--border2);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-x:hover { background: #111; border-color: rgba(255,255,255,0.2); }
.btn-x iconify-icon { font-size: 18px; }

.auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--muted2); }
.auth-footer a { color: var(--accent); font-weight: 600; }

/* ─── Step indicator ─── */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.step-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-mono);
}
.step-dot.done { background: var(--accent); color: #000; }
.step-dot.active { background: var(--surface3); color: var(--text); border: 2px solid var(--accent); }
.step-dot.todo { background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }
.step-line { flex: 1; height: 1px; background: var(--border); }
.step-line.done { background: var(--accent); }

/* ─── Campaign card ─── */
.campaign-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: all 0.25s;
}
.campaign-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.campaign-card.featured { border-color: rgba(53,217,107,0.25); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    .main { margin-left: 0; }
    .grid-4 { grid-template-columns: repeat(2,1fr); }
    .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .page { padding: 20px 16px; }

    .auth-page {
        align-items: flex-start;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 28px 14px;
    }

    .auth-glow-1 {
        height: 360px;
        left: -190px;
        top: -170px;
        width: 360px;
    }

    .auth-glow-2 {
        bottom: -160px;
        height: 320px;
        right: -170px;
        width: 320px;
    }

    .auth-box {
        border-radius: 20px;
        margin: auto 0;
        max-width: 420px;
        padding: 28px 22px;
    }

    .auth-logo {
        margin-bottom: 24px;
    }

    .auth-title {
        font-size: 1.65rem;
    }

    .auth-sub {
        margin-bottom: 22px;
    }

    .badge {
        max-width: 100%;
        white-space: normal;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .btn,
    .form-input,
    .form-select {
        min-height: 48px;
    }

    .auth-footer {
        line-height: 1.5;
    }
}

@media (max-width: 380px) {
    .auth-page {
        padding-inline: 10px;
    }

    .auth-box {
        border-radius: 18px;
        padding: 24px 18px;
    }
}

/* Demo login */
.demo-login-body {
    min-height: 100vh;
    background: #06080a;
}

.demo-login-page {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 100dvh;
    padding: 28px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #06080a;
}

.demo-login-page::before {
    content: "";
    position: fixed;
    z-index: -2;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.demo-login-page::after {
    content: "";
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #28e6a3, #36c9f0 58%, #8b75ff);
    pointer-events: none;
}

.demo-login-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 1180px);
}

.demo-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.demo-login-brand img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 0 22px rgba(40, 230, 163, 0.16);
}

.demo-login-brand span {
    display: grid;
    gap: 2px;
}

.demo-login-brand strong {
    color: #f5f7f8;
    font-size: 14px;
    line-height: 1.15;
}

.demo-login-brand small {
    color: #6f7b85;
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1.2;
    text-transform: uppercase;
}

.demo-login-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9aa5ae;
    font-size: 12px;
    font-weight: 600;
    transition: color 180ms ease;
}

.demo-login-home:hover,
.demo-login-home:focus-visible {
    color: #f5f7f8;
}

.demo-login-home iconify-icon {
    font-size: 15px;
}

.demo-login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
    align-items: stretch;
    width: min(100%, 1180px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background: #0b0e11;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.demo-login-card {
    max-width: none;
    padding: 42px;
    border: 0;
    border-radius: 0;
    background: #0b0e11;
}

.demo-login-badge-wrap {
    margin-bottom: 20px;
    text-align: left;
}

.demo-login-badge {
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid rgba(40, 230, 163, 0.28);
    border-radius: 4px;
    background: rgba(40, 230, 163, 0.07);
    color: #48e9b0;
    font-size: 9px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.demo-login-badge iconify-icon {
    font-size: 12px;
}

.demo-login-card .auth-title,
.demo-login-card .auth-sub {
    text-align: left;
}

.demo-login-card .auth-title {
    max-width: 330px;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
}

.demo-login-card .auth-sub {
    margin-bottom: 26px;
    color: #8d98a2;
    font-size: 13px;
    line-height: 1.65;
}

.demo-access-note {
    margin: 0 0 22px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(40, 230, 163, 0.16);
    border-left: 3px solid #28e6a3;
    border-radius: 6px;
    background: #0d1715;
    text-align: left;
}

.demo-access-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-access-heading > iconify-icon {
    color: #48e9b0;
    font-size: 18px;
}

.demo-access-heading div {
    display: grid;
    gap: 2px;
}

.demo-access-heading strong {
    color: #edf5f2;
    font-size: 12px;
}

.demo-access-heading span {
    color: #74847d;
    font-size: 10px;
    line-height: 1.45;
}

.demo-access-flow {
    display: grid;
    gap: 8px;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.demo-access-flow span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #cbd8d3;
    font-size: 11px;
    line-height: 1.35;
}

.demo-access-flow iconify-icon {
    flex: 0 0 auto;
    color: #48e9b0;
    font-size: 14px;
}

.demo-login-submit {
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    margin-top: 6px;
    padding-inline: 17px;
    border-radius: 6px;
    background: #28e6a3;
    color: #03110c;
}

.demo-login-submit:hover {
    border-color: #54edb7;
    background: #54edb7;
}

.demo-login-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.demo-login-submit iconify-icon {
    font-size: 17px;
}

.demo-login-spinner {
    animation: demo-login-spin 800ms linear infinite;
}

.demo-login-message {
    display: none;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: 6px;
    background: rgba(255, 77, 77, 0.08);
    color: var(--danger);
    font-size: 12px;
    line-height: 1.5;
}

.demo-login-message.is-visible {
    display: block;
}

.demo-login-footer {
    display: grid;
    gap: 11px;
    margin-top: 22px;
    text-align: left;
}

.demo-login-footer p,
.demo-login-footer a {
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.45;
}

.demo-login-footer p {
    color: #707b84;
    font-size: 10px;
}

.demo-login-footer p iconify-icon {
    flex: 0 0 auto;
    color: #48e9b0;
    font-size: 14px;
}

.demo-login-footer a {
    width: fit-content;
    color: #c9d2d8;
    font-size: 11px;
}

.demo-login-footer a:hover {
    color: #48e9b0;
}

.demo-preview-panel {
    min-width: 0;
    padding: 42px;
    overflow: hidden;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: #0e1115;
}

.demo-preview-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #ffc542;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.demo-preview-kicker span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffc542;
    box-shadow: 0 0 12px rgba(255, 197, 66, 0.48);
}

.demo-preview-copy h2 {
    max-width: 520px;
    margin-top: 11px;
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0;
}

.demo-preview-copy p {
    max-width: 570px;
    margin-top: 10px;
    color: #88949d;
    font-size: 12px;
    line-height: 1.6;
}

.demo-preview-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 22px;
    margin-top: 24px;
    list-style: none;
}

.demo-preview-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.demo-preview-features li > iconify-icon {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #48e9b0;
    font-size: 16px;
}

.demo-preview-features li > span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.demo-preview-features strong {
    color: #e6ebee;
    font-size: 11px;
}

.demo-preview-features small {
    color: #68747d;
    font-size: 9px;
    line-height: 1.35;
}

.demo-preview-figure {
    margin-top: 26px;
}

.demo-preview-media {
    position: relative;
    aspect-ratio: 684 / 430;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 6px;
    background: #07080a;
    box-shadow:
        inset 0 1px 0 rgba(255, 197, 66, 0.24),
        inset 0 0 0 1px rgba(0, 0, 0, 0.18),
        0 18px 44px rgba(0, 0, 0, 0.28);
    contain: paint;
    isolation: isolate;
}

.demo-preview-media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    animation: demo-preview-main-glitch 4s steps(1, end) infinite;
}

.demo-preview-media::before,
.demo-preview-media::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    opacity: 0;
    border-radius: inherit;
    background: url("../assets/demo-login-leaderboard.jpg") center top / 100% 100% no-repeat;
    mix-blend-mode: screen;
    pointer-events: none;
    will-change: transform, opacity, filter, clip-path;
}

.demo-preview-media::before {
    clip-path: inset(16% 0 66% 0);
    filter: sepia(1) saturate(2.2) hue-rotate(72deg);
    animation: demo-preview-slice-a 4s steps(1, end) infinite;
}

.demo-preview-media::after {
    clip-path: inset(68% 0 12% 0);
    filter: sepia(1) saturate(2.4);
    animation: demo-preview-slice-b 4s steps(1, end) infinite;
}

.demo-preview-figure figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 10px;
    color: #66727b;
    font-family: var(--font-mono);
    font-size: 9px;
}

.demo-preview-figure figcaption span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.demo-preview-figure figcaption iconify-icon {
    color: #48e9b0;
    font-size: 10px;
}

.demo-login-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(100%, 1180px);
    color: #4f5961;
    font-family: var(--font-mono);
    font-size: 9px;
}

.demo-login-meta span {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #56616a;
}

@keyframes demo-login-spin {
    to { transform: rotate(360deg); }
}

@keyframes demo-preview-main-glitch {
    0%, 88%, 96%, 100% { opacity: 1; transform: translate(0); filter: none; }
    89% { transform: translate(2px, -1px); filter: contrast(1.2) saturate(1.25); }
    90% { transform: translate(-3px, 1px); }
    91% { opacity: 0.72; transform: translate(1px); }
    92% { opacity: 1; transform: translate(0); filter: brightness(1.2); }
    94% { transform: translate(-1px, 1px); }
}

@keyframes demo-preview-slice-a {
    0%, 88%, 96%, 100% { opacity: 0; transform: translate(0); }
    89% { opacity: 0.7; transform: translate(-10px, -1px); clip-path: inset(16% 0 66% 0); }
    90% { opacity: 0; }
    92% { opacity: 0.55; transform: translate(8px, 1px); clip-path: inset(42% 0 38% 0); }
    93% { opacity: 0; }
    95% { opacity: 0.4; transform: translate(-5px); clip-path: inset(74% 0 9% 0); }
}

@keyframes demo-preview-slice-b {
    0%, 89%, 97%, 100% { opacity: 0; transform: translate(0); }
    90% { opacity: 0.58; transform: translate(9px, 1px); clip-path: inset(68% 0 12% 0); }
    91% { opacity: 0; }
    93% { opacity: 0.48; transform: translate(-7px, -1px); clip-path: inset(24% 0 57% 0); }
    94% { opacity: 0; }
    96% { opacity: 0.35; transform: translate(4px); clip-path: inset(52% 0 29% 0); }
}

@media (max-width: 960px) {
    .demo-login-page {
        justify-content: flex-start;
    }

    .demo-login-nav,
    .demo-login-shell,
    .demo-login-meta {
        width: min(100%, 680px);
    }

    .demo-login-shell {
        grid-template-columns: 1fr;
    }

    .demo-preview-panel {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-left: 0;
    }
}

@media (max-width: 600px) {
    .demo-login-page {
        gap: 18px;
        padding: 18px 14px 24px;
    }

    .demo-login-brand img {
        width: 38px;
        height: 38px;
    }

    .demo-login-brand strong {
        font-size: 13px;
    }

    .demo-login-home {
        gap: 6px;
        font-size: 0;
    }

    .demo-login-home::after {
        content: "Website";
        font-size: 11px;
    }

    .demo-login-card,
    .demo-preview-panel {
        padding: 28px 22px;
    }

    .demo-login-card .auth-title {
        max-width: 300px;
        font-size: 1.85rem;
    }

    .demo-preview-copy h2 {
        font-size: 1.65rem;
    }

    .demo-preview-features {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .demo-preview-media {
        aspect-ratio: 1 / 0.78;
    }

    .demo-login-meta {
        flex-wrap: wrap;
        line-height: 1.5;
    }
}

@media (max-width: 380px) {
    .demo-login-card,
    .demo-preview-panel {
        padding-inline: 18px;
    }

    .demo-preview-figure figcaption {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .demo-login-spinner,
    .demo-preview-media img,
    .demo-preview-media::before,
    .demo-preview-media::after {
        animation: none;
    }
}
