};
            --primary-dark: {{ $tone === 'amber' ? '#92400e' : '#0b4fb6' }};
            --soft: {{ $tone === 'amber' ? '#fff7ed' : '#eaf2ff' }};
            --danger-bg: #fff1f2;
            --danger: #be123c;
            --success-bg: #ecfdf5;
            --success: #047857;
        }

        * { box-sizing: border-box; }

        html { scroll-behavior: smooth; }

        body.auth-shell-body,
        .auth-theme-scope {
            min-height: 100vh;
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            color: var(--ink);
            background:
                radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 16%, transparent), transparent 32rem),
                linear-gradient(135deg, #f8fafc 0%, var(--bg) 52%, #eef4ff 100%);
        }

        .auth-theme-scope {
            min-height: auto;
        }

        .auth-theme-scope .page {
            min-height: min(900px, calc(100vh - 120px));
        }

        .auth-theme-scope .page.has-page-video {
            min-height: min(900px, calc(100vh - 120px));
            grid-template-columns: repeat(2, minmax(0, 1fr));
            align-items: center;
            gap: clamp(32px, 6vw, 96px);
            padding: 184px max(24px, calc((100vw - 1140px) / 2)) 56px;
        }

        .auth-theme-scope .page.has-page-video .brand-panel,
        .auth-theme-scope .page.has-page-video .login-wrap {
            padding: 0;
        }

        .auth-theme-scope .page.has-page-video .brand-panel {
            min-height: 100%;
            justify-content: center;
        }

        .auth-theme-scope .page.has-page-video .login-wrap {
            justify-content: center;
        }

        .auth-theme-scope .page.has-page-video .hero-copy,
        .auth-theme-scope .page.has-page-video .feature-row {
            width: 100%;
            max-width: 560px;
            margin-right: auto;
        }

        a:focus-visible,
        button:focus-visible,
        input:focus-visible,
        select:focus-visible {
            outline: 3px solid rgba(15, 102, 232, .2);
            outline-offset: 3px;
        }

        .skip-link {
            position: fixed;
            top: 12px;
            left: 12px;
            z-index: 20;
            transform: translateY(-160%);
            border-radius: 8px;
            padding: 10px 12px;
            background: var(--ink);
            color: #fff;
            font-size: 13px;
            font-weight: 800;
            text-decoration: none;
            transition: transform .16s ease;
        }

        .skip-link:focus { transform: translateY(0); }

        .page {
            position: relative;
            display: grid;
            min-height: 100vh;
            grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
        }

        .page.has-page-video {
            isolation: isolate;
            background: #0f172a;
        }

        .page.has-page-video::before {
            position: absolute;
            inset: 0;
            z-index: -1;
            content: "";
            background:
                linear-gradient(90deg, rgba(15, 23, 42, .78), rgba(15, 23, 42, .48) 46%, rgba(15, 23, 42, .66)),
                linear-gradient(180deg, rgba(15, 23, 42, .2), rgba(15, 23, 42, .76));
        }

        .page-video {
            position: absolute;
            inset: 0;
            z-index: -2;
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: saturate(1.06) contrast(1.04);
        }

        .page.has-page-video .brand-panel {
            color: #fff;
        }

        .page.has-page-video .brand,
        .page.has-page-video .hero-copy p,
        .page.has-page-video .feature span {
            color: rgba(255, 255, 255, .84);
        }

        .page.has-page-video .brand-name,
        .page.has-page-video .hero-copy h1,
        .page.has-page-video .feature strong {
            color: #fff;
        }

        .page.has-page-video .brand-mark {
            background: rgba(255, 255, 255, .92);
            color: #0f172a;
        }

        .page.has-page-video .feature {
            border-color: rgba(255, 255, 255, .2);
            background: rgba(15, 23, 42, .3);
            backdrop-filter: blur(8px);
        }

        .page.has-page-video .card {
            border-color: rgba(255, 255, 255, .34);
            background: rgba(255, 255, 255, .9);
            box-shadow: 0 28px 80px rgba(2, 6, 23, .34);
            backdrop-filter: blur(18px) saturate(1.08);
        }

        .page.has-page-video .card-head,
        .page.has-page-video .card-foot {
            border-color: rgba(226, 232, 240, .82);
        }

        .brand-panel {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            overflow: hidden;
            padding: 56px;
        }

        .brand-panel.has-video {
            isolation: isolate;
            color: #fff;
            background: #0f172a;
        }

        .brand-panel.has-video::after {
            position: absolute;
            inset: 0;
            z-index: -1;
            content: "";
            background:
                linear-gradient(90deg, rgba(15, 23, 42, .84), rgba(15, 23, 42, .56)),
                linear-gradient(180deg, rgba(15, 23, 42, .32), rgba(15, 23, 42, .72));
        }

        .hero-video {
            position: absolute;
            inset: 0;
            z-index: -2;
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: saturate(1.06) contrast(1.04);
        }

        .brand-panel.has-video .brand,
        .brand-panel.has-video .hero-copy p,
        .brand-panel.has-video .feature span {
            color: rgba(255, 255, 255, .82);
        }

        .brand-panel.has-video .brand-name,
        .brand-panel.has-video .hero-copy h1,
        .brand-panel.has-video .feature strong {
            color: #fff;
        }

        .brand-panel.has-video .brand-mark {
            background: rgba(255, 255, 255, .92);
            color: #0f172a;
        }

        .brand-panel.has-video .feature {
            border-color: rgba(255, 255, 255, .2);
            background: rgba(15, 23, 42, .34);
            backdrop-filter: blur(8px);
        }

        .brand-panel > *:not(.hero-video) {
            position: relative;
            z-index: 1;
        }

        .brand {
            display: inline-flex;
            visibility: hidden;
            align-items: center;
            gap: 12px;
            max-width: 100%;
            color: var(--ink);
            font-weight: 800;
            letter-spacing: 0;
            pointer-events: none;
            text-decoration: none;
        }

        .brand-mark {
            display: grid;
            width: 42px;
            height: 42px;
            place-items: center;
            border-radius: 10px;
            background: var(--primary);
            color: #fff;
            font-weight: 800;
        }

        .brand-logo {
            width: auto;
            max-width: 148px;
            max-height: 46px;
            object-fit: contain;
        }

        .brand-name {
            display: -webkit-box;
            min-width: 0;
            max-width: 420px;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            line-height: 1.25;
        }

        .hero-copy { max-width: 620px; }

        .hero-copy h1 {
            max-width: 620px;
            margin: 0 0 16px;
            font-size: 42px;
            line-height: 1.08;
            letter-spacing: 0;
        }

        .hero-copy p {
            max-width: 560px;
            margin: 0;
            color: var(--muted);
            font-size: 17px;
            line-height: 1.65;
        }

        .feature-row {
            display: grid;
            max-width: 680px;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }

        .feature {
            min-height: 84px;
            border: 1px solid rgba(148, 163, 184, .45);
            border-radius: 8px;
            padding: 14px;
            background: rgba(255, 255, 255, .66);
        }

        .feature strong {
            display: block;
            margin-bottom: 6px;
            font-size: 13px;
        }

        .feature span {
            color: var(--muted);
            font-size: 12px;
            line-height: 1.45;
        }

        .login-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 32px;
        }

        .card {
            width: 100%;
            max-width: 460px;
            border: 1px solid rgba(148, 163, 184, .3);
            border-radius: 10px;
            background: var(--panel);
            box-shadow: 0 22px 60px rgba(15, 23, 42, .12);
            overflow: hidden;
        }

        .card-head {
            padding: 26px 28px 18px;
            border-bottom: 1px solid #eef2f7;
        }

        .eyebrow {
            margin: 0 0 8px;
            color: var(--primary);
            font-size: 12px;
            font-weight: 800;
            text-transform: uppercase;
        }

        .card h2 {
            margin: 0;
            font-size: 26px;
            letter-spacing: 0;
        }

        .subtitle {
            margin: 10px 0 0;
            color: var(--muted);
            font-size: 14px;
            line-height: 1.55;
        }

        .quick-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 6px 12px;
            padding: 14px 28px 0;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.5;
        }

        .quick-links a {
            display: inline;
            min-height: auto;
            border: 0;
            border-radius: 0;
            color: #1e40af;
            font-size: 13px;
            font-weight: 800;
            text-align: left;
            text-decoration: none;
            text-underline-offset: 4px;
        }

        .quick-links a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        .quick-links a[aria-current="page"] {
            color: var(--primary-dark);
        }

        .quick-links a + a::before {
            content: "";
            display: inline-block;
            width: 4px;
            height: 4px;
            margin: 0 12px 2px 0;
            border-radius: 999px;
            background: currentColor;
            opacity: .42;
        }

        .page.has-page-video .quick-links {
            color: rgba(30, 41, 59, .72);
        }

        .page.has-page-video .quick-links::before {
            color: rgba(30, 41, 59, .62);
        }

        .card form { padding: 22px 28px 28px; }

        .notice {
            border-radius: 8px;
            padding: 11px 12px;
            margin-bottom: 14px;
            font-size: 14px;
            line-height: 1.45;
        }

        .notice.info { background: var(--soft); color: #11449b; }
        .notice.success { background: var(--success-bg); color: var(--success); }
        .notice.error { background: var(--danger-bg); color: var(--danger); }

        .field { margin-bottom: 15px; }

        .card label {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 7px;
            font-size: 13px;
            font-weight: 800;
        }

        .card input[type="text"],
        .card input[type="email"],
        .card input[type="tel"],
        .card input[type="password"],
        .card select {
            width: 100%;
            height: 46px;
            border: 1px solid var(--line);
            border-radius: 8px;
            padding: 0 13px;
            color: var(--ink);
            background: #fff;
            font-size: 15px;
            outline: none;
            transition: border-color .16s ease, box-shadow .16s ease;
        }

        .card input:focus,
        .card select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
        }

        .password-wrap {
            display: flex;
            overflow: hidden;
            border: 1px solid var(--line);
            border-radius: 8px;
            transition: border-color .16s ease, box-shadow .16s ease;
        }

        .password-wrap:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
        }

        .password-wrap input {
            border: 0;
            border-radius: 0;
            box-shadow: none;
        }

        .password-wrap button {
            width: auto;
            min-width: 78px;
            height: 46px;
            border: 0;
            border-left: 1px solid var(--line);
            background: #f8fafc;
            color: #1e40af;
            font-weight: 800;
            cursor: pointer;
        }

        .phone-row {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .phone-code { flex: 0 0 120px; }
        .phone-input { flex: 1; }

        .error {
            margin-top: 6px;
            color: var(--danger);
            font-size: 13px;
            line-height: 1.45;
        }

        .hint {
            margin-top: 6px;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.45;
        }

        .field-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-top: 7px;
        }

        .inline-action {
            border: 0;
            padding: 0;
            background: transparent;
            color: #1e40af;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
        }

        .caps-warning {
            display: none;
            margin-top: 8px;
            border-radius: 8px;
            padding: 8px 10px;
            background: #fff7ed;
            color: #9a3412;
            font-size: 12px;
            font-weight: 700;
        }

        .caps-warning.is-visible { display: block; }

        .form-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin: 2px 0 18px;
        }

        .checkbox-label {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin: 0;
            color: #334155;
            font-size: 14px;
            font-weight: 700;
        }

        .checkbox-label input {
            width: 16px;
            height: 16px;
            margin: 0;
            accent-color: var(--primary);
        }

        .security-note {
            color: var(--muted);
            font-size: 12px;
        }

        .recaptcha-area {
            margin-bottom: 16px;
            overflow: hidden;
        }

        .strength {
            display: grid;
            gap: 7px;
            margin-top: 9px;
        }

        .strength-bar {
            height: 7px;
            overflow: hidden;
            border-radius: 999px;
            background: #e2e8f0;
        }

        .strength-bar span {
            display: block;
            width: 0;
            height: 100%;
            border-radius: inherit;
            background: #ef4444;
            transition: width .18s ease, background .18s ease;
        }

        .strength-text {
            color: var(--muted);
            font-size: 12px;
            line-height: 1.4;
        }

        .result-list {
            display: grid;
            gap: 8px;
            margin-top: 10px;
        }

        .result-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            border-radius: 8px;
            padding: 9px 10px;
            background: rgba(255, 255, 255, .75);
        }

        .result-item span { min-width: 0; }

        .copy-code {
            flex: 0 0 auto;
            border: 1px solid rgba(4, 120, 87, .25);
            border-radius: 8px;
            padding: 7px 9px;
            background: #fff;
            color: var(--success);
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
        }

        .submit {
            width: 100%;
            height: 48px;
            border: 0;
            border-radius: 8px;
            background: var(--primary);
            color: #fff;
            font-size: 15px;
            font-weight: 800;
            cursor: pointer;
            transition: background .16s ease, transform .16s ease;
        }

        .submit:hover { background: var(--primary-dark); }
        .submit:active { transform: translateY(1px); }
        .submit[disabled] { cursor: wait; opacity: .75; }

        .card-foot {
            border-top: 1px solid #eef2f7;
            padding: 14px 28px 18px;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.45;
        }

        @media (max-width: 980px) {
            .page { grid-template-columns: 1fr; }
            .auth-theme-scope .page.has-page-video {
                display: block;
                min-height: auto;
                padding: 150px 24px 40px;
            }
            .brand-panel { padding: 28px 24px 0; }
            .auth-theme-scope .page.has-page-video .brand-panel {
                min-height: auto;
                padding: 0 0 18px;
            }
            .brand-panel > .hero-video { display: none; }
            .brand-panel.has-video { background: transparent; color: var(--ink); }
            .brand-panel.has-video::after { display: none; }
            .brand-panel.has-video .brand { color: var(--ink); }
            .brand-panel.has-video .brand-name { color: var(--ink); }
            .page.has-page-video .brand-panel { color: #fff; }
            .hero-copy, .feature-row { display: none; }
            .login-wrap { padding: 24px; align-items: flex-start; }
            .auth-theme-scope .page.has-page-video .login-wrap {
                justify-content: center;
                padding: 0;
            }
        }

        @media (min-width: 1400px) {
            .auth-theme-scope .page.has-page-video {
                padding-inline: max(24px, calc((100vw - 1320px) / 2));
            }
        }

        @media (max-width: 560px) {
            body.auth-shell-body,
            .auth-theme-scope { background: #f8fafc; }
            .auth-theme-scope .page.has-page-video {
                padding: 138px 16px 32px;
            }
            .brand-panel { padding: 20px 16px 0; }
            .login-wrap { padding: 16px; }
            .card { border-radius: 8px; }
            .brand-logo { max-width: 118px; max-height: 38px; }
            .brand-name { max-width: 220px; font-size: 13px; }
            .card-head, form, .card-foot { padding-left: 18px; padding-right: 18px; }
            .quick-links { padding-left: 18px; padding-right: 18px; }
            .quick-links a + a::before { margin-right: 10px; }
            .form-row { align-items: flex-start; flex-direction: column; }
            .phone-row { align-items: stretch; flex-direction: column; }
            .phone-code { flex-basis: auto; }
            .result-item { align-items: flex-start; flex-direction: column; }
            .copy-code { width: 100%; }
        }

        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                scroll-behavior: auto !important;
                transition-duration: .001ms !important;
                animation-duration: .001ms !important;
                animation-iteration-count: 1 !important;
            }
        }
