html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    color: var(--dark);
    background:
        radial-gradient(circle at 8% 0%, rgba(57, 167, 255, 0.16), transparent 30rem),
        radial-gradient(circle at 96% 10%, rgba(255, 184, 77, 0.18), transparent 24rem),
        linear-gradient(180deg, #f8fbff 0%, var(--bg-light) 44%, #eef5fb 100%);
    min-height: 100vh;
    overscroll-behavior-x: none;
    -webkit-text-size-adjust: 100%;
}

body.has-site-navbar {
    padding-top: var(--site-navbar-height, 4rem);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(26, 42, 58, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 42, 58, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select {
    outline-color: var(--primary);
}

.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.site-navbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.site-navbar-left,
.site-navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.brand-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    border-radius: 999px;
    padding: 0.34rem 0.9rem 0.34rem 0.38rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 247, 255, 0.82)),
        radial-gradient(circle at 0 0, rgba(57, 167, 255, 0.2), transparent 55%);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.86);
    transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.brand-link:hover {
    border-color: rgba(57, 167, 255, 0.34);
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12), 0 0 0 4px rgba(57, 167, 255, 0.08);
}

.brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.55rem;
    width: 2.55rem;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #e8f6ff);
    box-shadow: 0 14px 30px rgba(30, 167, 253, 0.24);
}

.brand-logo {
    position: relative;
    z-index: 1;
    height: 2.25rem;
    width: 2.25rem;
    border-radius: 0.85rem;
    object-fit: contain;
}

.brand-glow {
    position: absolute;
    inset: -35%;
    background: conic-gradient(from 160deg, transparent, rgba(30, 167, 253, 0.34), transparent 42%);
    animation: brand-glow-spin 5s linear infinite;
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.brand-name strong {
    color: var(--primary);
    font-weight: 950;
}

.brand-tagline {
    margin-top: 0.22rem;
    color: #64748b;
    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

@keyframes brand-glow-spin {
    to { transform: rotate(1turn); }
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.45rem;
    width: 2.45rem;
    border-radius: 999px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.icon-button:hover {
    color: var(--primary);
    background: rgba(57, 167, 255, 0.12);
    border-color: rgba(57, 167, 255, 0.28);
    transform: translateY(-1px);
}

.icon-button svg,
.nav-icon {
    height: 1.2rem;
    width: 1.2rem;
}

.search-shell {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    background: rgba(248, 251, 255, 0.92);
    padding: 0.72rem 1rem 0.72rem 2.7rem;
    color: var(--dark);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.search-input:focus {
    border-color: rgba(57, 167, 255, 0.72);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(57, 167, 255, 0.16), 0 16px 34px rgba(15, 23, 42, 0.08);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.nav-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #1878ff);
    box-shadow: 0 14px 28px rgba(57, 167, 255, 0.28);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.nav-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(57, 167, 255, 0.36);
}

.nav-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    padding: 0.65rem 1rem;
    color: #334155;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.72);
    transition: background 180ms ease, transform 180ms ease;
}

.nav-secondary-action:hover {
    background: #fff;
    transform: translateY(-1px);
}

.avatar-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.45rem;
    width: 2.45rem;
    border-radius: 999px;
    overflow: hidden;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.65), transparent 24%),
        linear-gradient(135deg, var(--primary), #1d4ed8 68%, #0f172a);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
    transition: transform 180ms ease;
}

.avatar-button:hover {
    transform: translateY(-1px) scale(1.02);
}

.avatar-button-img {
    height: 100%;
    width: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.dropdown-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.site-sidebar {
    transition: transform 220ms ease, width 220ms ease, box-shadow 220ms ease;
}

.site-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.site-sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.sidebar-mobile-search {
    display: none;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.72rem 1rem;
    color: #334155;
    font-weight: 650;
    transition: background 160ms ease, color 160ms ease;
}

.dropdown-link:hover {
    color: var(--primary);
    background: rgba(57, 167, 255, 0.08);
}

.dropdown-link-danger {
    color: #dc2626;
}

.dropdown-link-danger:hover {
    color: #b91c1c;
    background: #fef2f2;
}

.site-sidebar {
    top: var(--site-navbar-height, 4rem) !important;
    height: calc(100dvh - var(--site-navbar-height, 4rem)) !important;
    padding-top: 0 !important;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 16px 0 40px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(16px);
}

.sidebar-link {
    border: 1px solid transparent;
    border-radius: 0.9rem;
    font-weight: 700;
}

.sidebar-link:hover {
    background: rgba(57, 167, 255, 0.09);
    border-color: rgba(57, 167, 255, 0.16);
}

.sidebar-link-active {
    background: linear-gradient(135deg, var(--primary), #1878ff);
    color: #fff;
    box-shadow: 0 14px 28px rgba(57, 167, 255, 0.28);
}

.home-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 2rem;
    padding: 2rem;
    margin-bottom: 2rem;
    color: #fff;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.32), transparent 16rem),
        radial-gradient(circle at 90% 20%, rgba(255, 184, 77, 0.54), transparent 18rem),
        linear-gradient(135deg, #102438 0%, #145ca8 46%, #39a7ff 100%);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -6rem;
    height: 16rem;
    width: 16rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: -7rem -3rem 0 rgba(255, 255, 255, 0.07);
}

.hero-kicker {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-title {
    max-width: 46rem;
    margin-top: 0.45rem;
    font-size: clamp(2rem, 4.6vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-copy {
    max-width: 38rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-weight: 850;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
}

.hero-pill-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: none;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.section-eyebrow {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.video-card {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(57, 167, 255, 0.34);
    box-shadow: 0 26px 54px rgba(15, 23, 42, 0.14);
}

.video-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: #dbeafe;
}

.video-thumb-wrap img {
    transform: scale(1.01);
    transition: transform 260ms ease;
}

.video-card:hover .video-thumb-wrap img {
    transform: scale(1.06);
}

.video-thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, 0.54) 100%);
    opacity: 0;
    transition: opacity 220ms ease;
}

.video-card:hover .video-thumb-wrap::after {
    opacity: 1;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.28rem 0.6rem;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(57, 167, 255, 0.1);
    border: 1px solid rgba(57, 167, 255, 0.15);
}

.mini-player {
    position: fixed !important;
    width: min(340px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.35);
    z-index: 85;
}

.mini-player-placeholder {
    display: none;
    width: 100%;
}

.mini-player-placeholder.is-active {
    display: block;
}

.mini-player .video-player-frame {
    border-radius: 18px;
}

.mini-player .video-surface-play {
    min-width: 72px;
    min-height: 72px;
    padding: 0 18px;
    font-size: 0.9rem;
}

.mini-player .video-controls {
    gap: 10px;
    padding: 12px;
}

.mini-player .video-progress-row {
    gap: 8px;
}

.mini-player .video-toolbar {
    gap: 10px;
}

.mini-player .video-toolbar-group {
    gap: 8px;
}

.mini-player .video-control-btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.74rem;
}

.mini-player .video-volume {
    width: 76px;
}

.mini-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10000;
}

.mini-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    border: none;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
}

.mini-player-restore {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 84;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(30, 167, 253, 0.26);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(14px);
}

.mini-player-restore:hover {
    background: rgba(30, 167, 253, 0.94);
}

@media (max-width: 768px) {
    .mini-player {
        width: min(220px, calc(100vw - 1rem));
        max-width: calc(100vw - 1rem);
        border-radius: 16px;
    }

    .mini-player .video-player-frame {
        border-radius: 16px;
    }

    .mini-player .video-controls {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        gap: 8px;
        padding: 10px;
        background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.9));
    }

    .mini-player .video-toolbar {
        display: none;
    }

    .mini-player .video-progress-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .mini-player .video-progress-row .video-time:first-child {
        display: none;
    }

    .mini-player .video-time {
        font-size: 0.72rem;
    }

    .mini-player .video-surface-play {
        min-width: 62px;
        min-height: 62px;
        padding: 0 14px;
        font-size: 0.78rem;
    }

    .mini-controls {
        top: 8px;
        right: 8px;
    }

    .mini-controls button {
        width: 30px;
        height: 30px;
    }

    .mini-player-restore {
        right: 12px;
        bottom: 12px;
        min-height: 38px;
        padding: 0 14px;
        font-size: 0.76rem;
    }
}

@media (max-width: 768px) {
    body::before {
        display: none;
    }

    body.has-mobile-sidebar {
        overflow: hidden;
        touch-action: none;
    }

    .site-navbar {
        border-radius: 0;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
        backdrop-filter: none;
    }

    .site-navbar-row {
        gap: 0.75rem;
    }

    .site-navbar-left,
    .site-navbar-right {
        gap: 0.55rem;
    }

    .brand-link {
        gap: 0.55rem;
        padding: 0.28rem 0.6rem 0.28rem 0.28rem;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
    }

    .brand-mark {
        height: 2.15rem;
        width: 2.15rem;
        border-radius: 0.82rem;
    }

    .brand-logo {
        height: 1.88rem;
        width: 1.88rem;
        border-radius: 0.7rem;
    }

    .brand-name {
        font-size: 0.96rem;
    }

    .brand-tagline {
        display: none;
    }

    .icon-button,
    .avatar-button {
        height: 2.3rem;
        width: 2.3rem;
    }

    .nav-primary-action {
        padding: 0.62rem 0.88rem;
        box-shadow: 0 10px 20px rgba(57, 167, 255, 0.2);
    }

    .dropdown-card {
        max-width: calc(100vw - 1rem);
        backdrop-filter: none;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    }

    .site-sidebar {
        width: min(18rem, calc(100vw - 2.5rem)) !important;
        max-width: calc(100vw - 2.5rem);
        transform: translateX(-110%);
        box-shadow: 20px 0 40px rgba(15, 23, 42, 0.16);
        backdrop-filter: none;
        z-index: 70;
    }

    #sidebar.is-open {
        transform: translateX(0) !important;
    }

    #mainContent {
        margin-left: 0 !important;
        width: 100%;
        padding-top: 1rem;
    }

    .sidebar-mobile-search {
        display: block;
    }

    .home-hero {
        margin-bottom: 1.4rem;
        border-radius: 1.35rem;
        padding: 1.35rem;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.auth-grid {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1.5rem;
    align-items: stretch;
}

.auth-showcase {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 2rem;
    padding: 2rem;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.34), transparent 22rem),
        linear-gradient(145deg, #0f2740 0%, #154974 48%, #1ea7fd 100%);
    color: #f8fbff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.auth-showcase::after {
    content: "";
    position: absolute;
    inset: auto -8% -22% auto;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 208, 122, 0.4), transparent 65%);
    pointer-events: none;
}

.auth-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(236, 246, 255, 0.78);
}

.auth-title {
    margin-top: 1rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.auth-copy {
    margin-top: 1rem;
    max-width: 34rem;
    color: rgba(236, 246, 255, 0.82);
    line-height: 1.75;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 999px;
    padding: 0.5rem 0.8rem 0.5rem 0.55rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.auth-brand-badge img {
    height: 2.15rem;
    width: 2.15rem;
    border-radius: 0.85rem;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.2rem;
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.auth-brand-name {
    font-weight: 900;
    font-size: 1rem;
    line-height: 1;
}

.auth-brand-tag {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(236, 246, 255, 0.74);
}

.auth-point-list {
    margin-top: 1.75rem;
    display: grid;
    gap: 0.85rem;
}

.auth-point {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.auth-point-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    width: 2rem;
    border-radius: 999px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #fff5df;
    font-weight: 800;
}

.auth-point-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
}

.auth-point-copy {
    margin-top: 0.15rem;
    font-size: 0.85rem;
    color: rgba(236, 246, 255, 0.78);
    line-height: 1.65;
}

.auth-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.auth-card-inner {
    padding: 2rem;
}

.auth-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 180ms ease, transform 180ms ease;
}

.auth-home-link:hover {
    color: var(--primary);
    transform: translateX(-2px);
}

.auth-card-title {
    font-size: 2rem;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--dark);
}

.auth-card-copy {
    margin-top: 0.65rem;
    color: #64748b;
    line-height: 1.7;
}

.auth-form {
    margin-top: 1.75rem;
    display: grid;
    gap: 1rem;
}

.auth-field {
    display: grid;
    gap: 0.45rem;
}

.auth-label {
    font-size: 0.92rem;
    font-weight: 800;
    color: #334155;
}

.auth-input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 1rem;
    background: rgba(248, 251, 255, 0.98);
    padding: 0.9rem 1rem;
    color: var(--dark);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(57, 167, 255, 0.72);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(57, 167, 255, 0.14);
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .auth-input {
    padding-right: 5.2rem;
}

.auth-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
    border-radius: 999px;
    padding: 0.42rem 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #ffffff;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.auth-toggle:hover {
    color: var(--primary);
    border-color: rgba(57, 167, 255, 0.34);
    background: rgba(57, 167, 255, 0.06);
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 1rem;
    padding: 0.95rem 1.15rem;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #1878ff);
    box-shadow: 0 18px 34px rgba(57, 167, 255, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px rgba(57, 167, 255, 0.28);
}

.auth-submit:disabled {
    opacity: 0.76;
    cursor: wait;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(148, 163, 184, 0.24);
}

.auth-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #ffffff;
    padding: 0.9rem 1rem;
    color: var(--dark);
    font-weight: 700;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.auth-social:hover {
    transform: translateY(-1px);
    border-color: rgba(57, 167, 255, 0.28);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.auth-social img {
    height: 1.2rem;
    width: 1.2rem;
}

.auth-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.9rem;
    color: #64748b;
    font-size: 0.92rem;
}

.auth-inline-link {
    color: var(--primary);
    font-weight: 800;
}

.auth-inline-link:hover {
    text-decoration: underline;
}

.auth-note {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
}

.auth-message {
    min-height: 1.5rem;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
}

.auth-message.is-success {
    color: #15803d;
}

.auth-message.is-error {
    color: #dc2626;
}

.auth-strength {
    display: grid;
    gap: 0.45rem;
}

.auth-strength-track {
    height: 0.5rem;
    width: 100%;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.24);
}

.auth-strength-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #cbd5e1;
    transition: width 180ms ease, background 180ms ease;
}

.auth-strength-fill.is-weak {
    background: #ef4444;
}

.auth-strength-fill.is-medium {
    background: #f59e0b;
}

.auth-strength-fill.is-strong {
    background: #22c55e;
}

.auth-strength-copy {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.auth-policy {
    font-size: 0.82rem;
    line-height: 1.7;
    color: #64748b;
}

.auth-policy a {
    color: var(--primary);
    font-weight: 700;
}

.auth-policy a:hover {
    text-decoration: underline;
}

.auth-shake {
    animation: auth-shake 0.4s ease-in-out;
}

@keyframes auth-shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

@media (max-width: 980px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        padding: 1.6rem;
    }
}

@media (max-width: 640px) {
    .auth-shell {
        padding: 1rem 0.85rem 1.5rem;
    }

    .auth-card-inner,
    .auth-showcase {
        padding: 1.35rem;
        border-radius: 1.5rem;
    }

    .auth-topbar {
        margin-bottom: 1.2rem;
    }

    .auth-card-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 520px) {
    .brand-wordmark {
        display: none;
    }

    .site-navbar-row {
        gap: 0.5rem;
    }

    .site-navbar-left,
    .site-navbar-right {
        gap: 0.45rem;
    }

    .nav-primary-action {
        padding: 0.58rem 0.75rem;
        font-size: 0.9rem;
    }
}
