:root {
    color-scheme: light;
    --ink: #252525;
    --ink-04: rgba(0, 0, 0, 0.04);
    --ink-05: rgba(0, 0, 0, 0.05);
    --ink-10: rgba(0, 0, 0, 0.08);
    --ink-12: rgba(0, 0, 0, 0.10);
    --ink-16: rgba(0, 0, 0, 0.12);
    --ink-20: rgba(0, 0, 0, 0.14);
    --ink-30: rgba(0, 0, 0, 0.32);
    --ink-55: rgba(0, 0, 0, 0.55);
    --ink-60: rgba(0, 0, 0, 0.58);
    --ink-70: rgba(0, 0, 0, 0.66);
    --v2-bg: #fdfdf7;
    --v2-gold: #d47959;
    --v2-pay-btn: #d47959;
    --v2-on-accent: #fff;
    --danger: #dc2626;
    --success: #168348;
}

html.dark {
    color-scheme: dark;
    --ink: #fff;
    --ink-04: rgba(255, 255, 255, 0.04);
    --ink-05: rgba(255, 255, 255, 0.05);
    --ink-10: rgba(255, 255, 255, 0.10);
    --ink-12: rgba(255, 255, 255, 0.12);
    --ink-16: rgba(255, 255, 255, 0.16);
    --ink-20: rgba(255, 255, 255, 0.20);
    --ink-30: rgba(255, 255, 255, 0.30);
    --ink-55: rgba(255, 255, 255, 0.55);
    --ink-60: rgba(255, 255, 255, 0.60);
    --ink-70: rgba(255, 255, 255, 0.70);
    --v2-bg: #050301;
    --v2-gold: #ffd1a2;
    --v2-pay-btn: linear-gradient(117deg, #a97949 0%, #59350d 100%);
    --v2-on-accent: #fff;
    --danger: #ff8f8f;
    --success: #63d895;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
}

button,
input {
    font: inherit;
    font-feature-settings: inherit;
    letter-spacing: inherit;
}

.auth-shell {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--ink);
    font-family: "PingFang SC", system-ui, sans-serif;
    font-feature-settings: "calt", "rlig";
    line-height: 1.5;
    letter-spacing: -0.01em;
    background: var(--v2-bg);
}

.desktop-layout {
    position: relative;
    width: 100%;
    height: 100%;
    flex: none;
}

.auth-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
    overflow: hidden;
}

.auth-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    transform: rotate(180deg);
}

.auth-bg-glow {
    position: absolute;
    width: auto;
    pointer-events: none;
}

.auth-bg-glow-one {
    top: clamp(221px, 17.7083vw, 340px);
    left: clamp(133.9px, 10.7292vw, 206px);
}

.auth-bg-glow-two {
    top: clamp(853.45px, 68.3854vw, 1313px);
    left: clamp(1259.05px, 100.8854vw, 1937px);
}

html:not(.dark) .auth-bg {
    display: none;
}

.ambient {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

html:not(.dark) .ambient {
    display: none;
}

.ambient-texture {
    position: absolute;
    top: -130px;
    right: -65px;
    width: clamp(585px, 46.875vw, 900px);
    height: clamp(585px, 46.875vw, 900px);
    background: url("/hero/texture.webp") no-repeat center / contain;
    opacity: 0.2;
    transform: scaleX(-1);
}

.ambient-top,
.ambient-left {
    position: absolute;
    width: clamp(349.05px, 27.9688vw, 537px);
    height: clamp(186.55px, 14.9479vw, 287px);
    background: #bd6d1d;
    filter: blur(clamp(137.15px, 10.9896vw, 211px));
    transform: rotate(180deg);
}

.ambient-top {
    top: -117px;
    right: 0;
    opacity: 0.74;
}

.ambient-left {
    top: 20%;
    left: -175.5px;
    opacity: 0.54;
}

.ambient-bottom {
    position: absolute;
    right: 0;
    bottom: -65px;
    left: 0;
    height: clamp(195px, 15.625vw, 300px);
}

.ambient-bottom::before,
.ambient-bottom::after {
    position: absolute;
    content: "";
}

.ambient-bottom::before {
    inset: 0;
    background: #bd6d1d;
    filter: blur(clamp(117px, 9.375vw, 180px));
    opacity: 0.4;
}

.ambient-bottom::after {
    bottom: 0;
    left: -5%;
    width: 110%;
    height: clamp(78px, 6.25vw, 120px);
    background: #ffca96;
    filter: blur(clamp(39px, 3.125vw, 60px));
    opacity: 0.7;
}

.topbar {
    position: absolute;
    top: clamp(13px, 1.0417vw, 20px);
    left: clamp(15.6px, 1.25vw, 24px);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: clamp(1216.8px, 97.5vw, 1872px);
    height: clamp(23.4px, 1.875vw, 36px);
}

.brand {
    display: flex;
    align-items: center;
    gap: clamp(9.048px, 0.725vw, 13.92px);
    color: var(--ink);
    text-decoration: none;
}

.brand-logo {
    width: clamp(21.9635px, 1.7599vw, 33.79px);
    height: clamp(22.1px, 1.7708vw, 34px);
    object-fit: cover;
    flex: none;
}

.brand-name {
    color: var(--ink);
    font-family: STZhongsong, "PingFang SC", serif;
    font-size: clamp(14.4755px, 1.1599vw, 22.27px);
    line-height: clamp(14.4755px, 1.1599vw, 22.27px);
}

.top-actions {
    display: inline-flex;
    align-items: center;
    gap: clamp(2.6px, 0.2083vw, 4px);
}

.theme-toggle,
.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: clamp(5.2px, 0.4167vw, 8px);
    padding: clamp(6.5px, 0.5208vw, 10px) clamp(7.8px, 0.625vw, 12px);
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 222px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.theme-toggle:hover,
.language-toggle:hover {
    opacity: 1;
}

.theme-toggle svg,
.language-toggle svg {
    width: clamp(10.4px, 0.8333vw, 16px);
    height: clamp(10.4px, 0.8333vw, 16px);
}

.theme-toggle span,
.language-toggle span {
    color: var(--ink);
    font-size: clamp(12px, 0.7292vw, 14px);
    line-height: clamp(12px, 0.7292vw, 14px);
}

.theme-toggle .sun,
html.dark .theme-toggle .moon {
    display: none;
}

html.dark .theme-toggle .sun {
    display: block;
}

.theme-label::before {
    content: "深色";
}

html.dark .theme-label::before {
    content: "浅色";
}

.hero {
    position: absolute;
    top: clamp(248.95px, 19.9479vw, 383px);
    left: clamp(168.35px, 13.4896vw, 259px);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: clamp(22.8085px, 1.8276vw, 35.09px);
    width: clamp(394.55px, 31.6146vw, 607px);
}

.hero-title {
    margin: 0;
    font-family: "PingFang SC", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: clamp(51.311px, 4.1115vw, 78.94px);
    white-space: nowrap;
}

.shimmer {
    color: transparent;
    background-image: linear-gradient(100deg, var(--ink-55) 0%, var(--ink-55) 38%, var(--ink) 50%, var(--ink-55) 62%, var(--ink-55) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-text 5s linear infinite;
}

html:not(.dark) .shimmer {
    color: #000;
    background: none;
    -webkit-text-fill-color: #000;
    animation: none;
}

.hero-title > .shimmer:first-child {
    font-size: clamp(33.0655px, 2.6495vw, 50.87px);
}

.hero-secondary,
.brace {
    font-size: clamp(30.7905px, 2.4672vw, 47.37px);
}

.brace {
    color: #ac651e;
    -webkit-text-fill-color: #ac651e;
}

.hero-copy {
    width: clamp(318.0125px, 25.4818vw, 489.25px);
    margin: 0;
    color: var(--ink);
    font-size: clamp(12px, 0.9375vw, 18px);
    line-height: clamp(19.5px, 1.5625vw, 30px);
    opacity: 0.8;
}

.auth-card {
    position: absolute;
    top: 50%;
    left: clamp(744.9px, 59.6875vw, 1146px);
    z-index: 4;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    width: clamp(312px, 25vw, 480px);
    max-height: calc(100vh - clamp(26px, 2.0833vw, 40px));
    padding: clamp(23.4px, 1.875vw, 36px) clamp(22.1px, 1.7708vw, 34px) clamp(26px, 2.0833vw, 40px);
    overflow-y: auto;
    background: linear-gradient(180deg, var(--ink-20) -51%, var(--ink-04) 126%);
    border-radius: clamp(16.9px, 1.3542vw, 26px);
    backdrop-filter: blur(clamp(92.95px, 7.4479vw, 143px));
    -webkit-backdrop-filter: blur(clamp(92.95px, 7.4479vw, 143px));
    transform: translateY(-50%);
}

.card-login {
    min-height: clamp(288.6px, 23.125vw, 444px);
}

.card-register {
    min-height: clamp(520px, 41.6667vw, 800px);
}

.card-register-short {
    min-height: clamp(403px, 32.2917vw, 620px);
}

html:not(.dark) .auth-card {
    background: #fff;
    box-shadow: 0 0 0 1px var(--ink-12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.auth-card > :not(.card-orbit) {
    position: relative;
    z-index: 1;
}

.card-orbit {
    position: absolute;
    inset: 0;
    z-index: 0;
    padding: 1.5px;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.card-orbit::before,
.card-orbit::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    content: "";
    transform: translate(-50%, -50%);
    animation: orbit 6s linear infinite;
}

.card-orbit::before {
    background: conic-gradient(from 0deg, transparent 0 74%, rgba(255, 210, 164, 0.18) 77%, rgba(255, 247, 233, 0.72) 79%, rgba(255, 255, 255, 0.96) 80.5%, rgba(255, 247, 233, 0.72) 82%, rgba(255, 210, 164, 0.18) 84%, transparent 87% 100%);
}

.card-orbit::after {
    background: conic-gradient(from 0deg, transparent 0 68%, rgba(255, 214, 162, 0.10) 72%, rgba(255, 247, 232, 0.24) 77%, rgba(255, 255, 255, 0.36) 80.5%, rgba(255, 247, 232, 0.24) 84%, rgba(255, 214, 162, 0.10) 89%, transparent 93% 100%);
    filter: blur(4px);
}

.tabs {
    position: relative;
    width: clamp(267.8px, 21.4583vw, 412px);
    height: clamp(39px, 3.125vw, 60px);
    flex: none;
    margin-bottom: clamp(15.6px, 1.25vw, 24px);
    background: var(--ink-04);
    border-radius: clamp(7.8px, 0.625vw, 12px);
}

.tabs::before {
    position: absolute;
    top: clamp(3.9px, 0.3125vw, 6px);
    left: clamp(3.9px, 0.3125vw, 6px);
    width: clamp(118.95px, 9.5313vw, 183px);
    height: clamp(31.2px, 2.5vw, 48px);
    content: "";
    background: var(--ink-12);
    border-radius: clamp(5.2px, 0.4167vw, 8px);
    box-shadow: 0 clamp(2.6px, 0.2083vw, 4px) clamp(3.25px, 0.2604vw, 5px) rgba(0, 0, 0, 0.12);
    transition: left 0.25s ease;
}

.tabs.active-register::before {
    left: clamp(144.95px, 11.6146vw, 223px);
}

.tabs-single::before {
    left: clamp(3.9px, 0.3125vw, 6px);
    width: calc(100% - clamp(7.8px, 0.625vw, 12px));
}

.tab {
    position: absolute;
    top: 0;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(118.95px, 9.5313vw, 183px);
    height: clamp(39px, 3.125vw, 60px);
    color: var(--ink);
    font-size: clamp(13px, 1.0417vw, 20px);
    line-height: clamp(13px, 1.0417vw, 20px);
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    opacity: 0.6;
}

.tab-login {
    left: clamp(3.9px, 0.3125vw, 6px);
}

.tab-register {
    left: clamp(144.95px, 11.6146vw, 223px);
}

.tabs-single .tab-login {
    width: calc(100% - clamp(7.8px, 0.625vw, 12px));
}

.register-intro {
    flex: none;
    margin-bottom: clamp(15.6px, 1.25vw, 24px);
    text-align: center;
}

.register-title {
    margin: 0;
    color: var(--ink);
    font-size: clamp(18px, 1.25vw, 24px);
    font-weight: 600;
    line-height: 1.2;
}

.register-subtitle {
    margin: clamp(6.5px, 0.5208vw, 10px) 0 0;
    color: var(--ink-60);
    font-size: clamp(12px, 0.7292vw, 14px);
    line-height: 1.4;
}

.agent-invite-badge {
    display: inline-flex;
    align-items: center;
    gap: clamp(5.2px, 0.4167vw, 8px);
    margin: clamp(7.8px, 0.625vw, 12px) auto 0;
    padding: clamp(4.55px, 0.3646vw, 7px) clamp(9.1px, 0.7292vw, 14px);
    color: var(--v2-gold);
    font-size: clamp(12px, 0.7292vw, 14px);
    line-height: 1;
    background: var(--ink-10);
    border: 1px solid var(--ink-12);
    border-radius: 999px;
}

.tab.active {
    opacity: 1;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: clamp(13px, 1.0417vw, 20px);
}

.auth-form.form-register {
    gap: clamp(11.05px, 0.8854vw, 17px);
}

.field {
    display: flex;
    flex-direction: column;
    gap: clamp(10.4px, 0.8333vw, 16px);
}

.form-register .field {
    gap: clamp(7.8px, 0.625vw, 12px);
}

.label {
    color: var(--ink);
    font-size: clamp(12px, 0.8333vw, 16px);
    line-height: clamp(12px, 0.8333vw, 16px);
}

.form-register .label {
    font-size: clamp(12px, 0.7292vw, 14px);
    line-height: clamp(12px, 0.7292vw, 14px);
}

.hint {
    margin-left: clamp(2.6px, 0.2083vw, 4px);
    color: var(--ink-60);
    font-size: 12px;
}

.input-box {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    width: 100%;
    height: clamp(36.4px, 2.9167vw, 56px);
    padding: 0 clamp(10.4px, 0.8333vw, 16px);
    background: var(--ink-10);
    border: 1px solid transparent;
    border-radius: clamp(7.8px, 0.625vw, 12px);
    transition: border-color 0.2s;
}

.form-register .input-box {
    height: clamp(31.2px, 2.5vw, 48px);
}

.input-box:focus-within {
    border-color: rgba(227, 159, 93, 0.55);
}

.input-control {
    flex: 1;
    min-width: 0;
    padding: 0;
    color: var(--ink);
    font-size: clamp(12px, 0.7292vw, 14px);
    line-height: clamp(12px, 0.8333vw, 16px);
    background: transparent;
    border: 0;
    outline: 0;
}

.input-control::placeholder {
    color: var(--ink-60);
}

.strength-meter {
    display: flex;
    flex-direction: column;
    gap: clamp(3.25px, 0.2604vw, 5px);
}

.strength-bar {
    display: flex;
    gap: clamp(2.6px, 0.2083vw, 4px);
}

.strength-seg {
    height: 3px;
    flex: 1;
    background: var(--ink-12);
    border-radius: 999px;
    transition: background 0.2s;
}

.strength-seg.weak {
    background: var(--danger);
}

.strength-seg.medium {
    background: #d99024;
}

.strength-seg.strong {
    background: var(--success);
}

.strength-label {
    min-height: clamp(10.4px, 0.8333vw, 16px);
    color: var(--ink-60);
    font-size: clamp(10px, 0.625vw, 12px);
    line-height: clamp(10.4px, 0.8333vw, 16px);
}

.strength-label.weak {
    color: var(--danger);
}

.strength-label.medium {
    color: #d99024;
}

.strength-label.strong {
    color: var(--success);
}

.eye-button {
    display: inline-flex;
    align-items: center;
    margin-left: clamp(7.8px, 0.625vw, 12px);
    padding: 0;
    color: var(--ink-60);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color 0.2s;
}

.eye-button:hover {
    color: var(--ink);
}

.eye-button svg {
    width: clamp(13px, 1.0417vw, 20px);
    height: clamp(13px, 1.0417vw, 20px);
}

.eye-button .eye-off,
.eye-button[aria-pressed="true"] .eye-on {
    display: none;
}

.eye-button[aria-pressed="true"] .eye-off {
    display: block;
}

.code-row,
.captcha-row {
    display: flex;
    gap: clamp(5.2px, 0.4167vw, 8px);
}

.code-row .input-box,
.captcha-row .input-box {
    flex: 1;
}

.code-button,
.captcha-refresh {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    min-width: clamp(68.9px, 5.5208vw, 106px);
    padding: 0 clamp(7.8px, 0.625vw, 12px);
    color: var(--v2-gold);
    font-size: 12px;
    line-height: clamp(12px, 0.8333vw, 16px);
    white-space: nowrap;
    background: var(--ink-10);
    border: 0;
    border-radius: clamp(7.8px, 0.625vw, 12px);
    cursor: pointer;
    transition: opacity 0.2s;
}

.code-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.code-button:not(:disabled):hover,
.captcha-refresh:hover {
    opacity: 0.8;
}

.captcha-image {
    width: clamp(72.8px, 5.8333vw, 112px);
    height: clamp(31.2px, 2.5vw, 48px);
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--ink-12);
    border-radius: clamp(7.8px, 0.625vw, 12px);
}

.captcha-refresh {
    min-width: clamp(31.2px, 2.5vw, 48px);
    padding: 0;
}

.captcha-refresh svg {
    width: clamp(11.7px, 0.9375vw, 18px);
    height: clamp(11.7px, 0.9375vw, 18px);
}

.agreement {
    display: flex;
    align-items: flex-start;
    gap: clamp(9.1px, 0.7292vw, 14px);
    cursor: pointer;
}

.agreement input {
    width: clamp(10.4px, 0.8333vw, 16px);
    height: clamp(10.4px, 0.8333vw, 16px);
    flex: none;
    margin: 0;
    accent-color: var(--v2-gold);
    cursor: pointer;
}

.agreement span {
    color: var(--ink-60);
    font-size: clamp(12px, 0.7292vw, 14px);
    line-height: clamp(12px, 0.8333vw, 16px);
}

.agreement a {
    color: var(--v2-gold);
    text-decoration: none;
}

.agreement a:hover {
    text-decoration: underline;
}

.turnstile-wrap {
    display: flex;
    justify-content: center;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: clamp(15.6px, 1.25vw, 24px);
    margin-top: clamp(7.8px, 0.625vw, 12px);
}

.primary-button,
.secondary-button {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: clamp(36.4px, 2.9167vw, 56px);
    padding: 0;
    color: var(--v2-on-accent);
    font-size: clamp(13px, 1.0417vw, 20px);
    line-height: clamp(13px, 1.0417vw, 20px);
    text-decoration: none;
    background: var(--v2-pay-btn);
    border: 0;
    border-radius: clamp(7.8px, 0.625vw, 12px);
    cursor: pointer;
    transition: filter 0.2s;
}

.primary-button:hover {
    filter: brightness(1.08);
}

.primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.secondary-button {
    color: var(--ink);
    background: var(--ink-10);
    border: 1px solid var(--ink-30);
    transition: background 0.2s;
}

.secondary-button:hover {
    background: var(--ink-16);
}

.message {
    display: none;
    padding: clamp(7.8px, 0.625vw, 12px) clamp(9.1px, 0.7292vw, 14px);
    font-size: 12px;
    line-height: clamp(12px, 0.8333vw, 16px);
    border-radius: clamp(6.5px, 0.5208vw, 10px);
}

.message:not(:empty) {
    display: block;
}

.message.error {
    color: var(--danger);
    background: rgba(220, 38, 38, 0.10);
}

.message.success {
    color: var(--success);
    background: rgba(22, 131, 72, 0.10);
}

.alt-line {
    margin: 0;
    color: var(--ink);
    font-size: clamp(12px, 0.8333vw, 16px);
    line-height: clamp(12px, 0.8333vw, 16px);
    text-align: center;
}

.alt-line a {
    color: var(--v2-gold);
    text-decoration: none;
}

.alt-line a:hover {
    text-decoration: underline;
}

.register-login-link {
    margin-top: clamp(1.95px, 0.1563vw, 3px);
}

.legal-footer {
    position: absolute;
    bottom: clamp(22.1px, 1.7708vw, 34px);
    left: 50%;
    z-index: 5;
    margin: 0;
    color: var(--ink-60);
    font-size: clamp(12px, 0.8333vw, 16px);
    line-height: clamp(14.3px, 1.1458vw, 22px);
    text-align: center;
    white-space: nowrap;
    transform: translateX(-50%);
}

.legal-footer a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: clamp(1.95px, 0.1563vw, 3px);
}

.legal-footer a:hover {
    color: var(--v2-gold);
}

.theme-toggle:focus-visible,
.language-toggle:focus-visible,
.tab:focus-visible,
.input-control:focus-visible,
.eye-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.code-button:focus-visible,
.captcha-refresh:focus-visible {
    outline: 2px solid var(--v2-gold);
    outline-offset: 2px;
}

@keyframes shine-text {
    from { background-position: 150% center; }
    to { background-position: -50% center; }
}

@keyframes orbit {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .shimmer,
    .card-orbit::before,
    .card-orbit::after {
        animation: none;
    }
}

@media (max-width: 720px) {
    .auth-shell {
        position: relative;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 16px 20px calc(32px + env(safe-area-inset-bottom));
        overflow-x: hidden;
        overflow-y: auto;
    }

    .ambient {
        position: fixed;
    }

    .auth-bg {
        position: fixed;
        display: block;
    }

    .ambient-texture {
        top: -100px;
        right: -60px;
        width: 350px;
        height: 350px;
        opacity: 0.12;
    }

    .ambient-top {
        top: -120px;
        right: 0;
        width: 240px;
        height: 150px;
        filter: blur(90px);
        opacity: 0.4;
    }

    .ambient-left {
        display: none;
    }

    .ambient-bottom {
        bottom: -80px;
        height: 200px;
    }

    .ambient-bottom::before {
        filter: blur(120px);
        opacity: 0.4;
    }

    .ambient-bottom::after {
        height: 80px;
        filter: blur(40px);
        opacity: 0.5;
    }

    .topbar {
        position: relative;
        top: auto;
        left: auto;
        z-index: 2;
        width: 100%;
        height: auto;
        flex: none;
        margin-bottom: 24px;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
    }

    .brand-name {
        font-size: 18px;
        line-height: 18px;
    }

    .top-actions {
        gap: 4px;
    }

    .theme-toggle,
    .language-toggle {
        gap: 6px;
        padding: 8px 10px;
    }

    .theme-toggle svg,
    .language-toggle svg {
        width: 16px;
        height: 16px;
    }

    .theme-toggle span,
    .language-toggle span {
        font-size: 13px;
        line-height: 13px;
    }

    .desktop-layout {
        display: flex;
        flex: 1;
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .hero {
        position: relative;
        top: auto;
        left: auto;
        z-index: 2;
        display: block;
        width: 100%;
        margin-bottom: 24px;
        text-align: center;
    }

    .hero-title {
        margin: 0 0 10px;
        font-size: 26px;
        line-height: 1.3;
        white-space: normal;
    }

    .hero-title > .shimmer:first-child {
        font-size: 26px;
    }

    .hero-title br,
    .brace {
        display: none;
    }

    .hero-secondary {
        display: block;
        margin-top: 10px;
        color: var(--ink);
        font-size: 14px;
        font-weight: 400;
        line-height: 22px;
        background: none;
        opacity: 0.7;
        -webkit-text-fill-color: currentColor;
        animation: none;
    }

    .hero-copy {
        display: none;
    }

    .auth-card {
        position: relative;
        top: auto;
        left: auto;
        z-index: 2;
        width: 100%;
        min-height: 0;
        max-height: none;
        margin: auto 0;
        padding: 24px 20px 28px;
        overflow: visible;
        background: linear-gradient(180deg, var(--ink-16) 0%, var(--ink-04) 100%);
        border-radius: 20px;
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        transform: none;
    }

    html:not(.dark) .auth-card {
        background: #fff;
        box-shadow: 0 0 0 1px var(--ink-12);
    }

    .tabs {
        width: 100%;
        height: 52px;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .tabs::before {
        top: 5px;
        left: 5px;
        width: calc(50% - 6px);
        height: 42px;
        border-radius: 7px;
    }

    .tabs.active-register::before {
        left: 50%;
    }

    .tabs-single::before {
        left: 5px;
        width: calc(100% - 10px);
    }

    .tab {
        width: 50%;
        height: 52px;
        font-size: 16px;
        line-height: 16px;
    }

    .tab-login {
        left: 0;
    }

    .tab-register {
        left: 50%;
    }

    .tabs-single .tab-login {
        width: 100%;
    }

    .auth-form {
        gap: 18px;
    }

    .auth-form.form-register {
        gap: 14px;
    }

    .field,
    .form-register .field {
        gap: 10px;
    }

    .label {
        font-size: 14px;
        line-height: 14px;
    }

    .form-register .label {
        font-size: 13px;
        line-height: 13px;
    }

    .input-box {
        height: 48px;
        padding: 0 14px;
        border-radius: 10px;
    }

    .form-register .input-box {
        height: 46px;
    }

    .input-control {
        font-size: 16px;
    }

    .eye-button {
        margin-left: 12px;
    }

    .eye-button svg {
        width: 20px;
        height: 20px;
    }

    .code-row,
    .captcha-row {
        gap: 8px;
    }

    .code-button {
        min-width: 96px;
        padding: 0 12px;
        font-size: 12px;
        border-radius: 10px;
    }

    .captcha-image {
        width: 96px;
        height: 46px;
        border-radius: 10px;
    }

    .captcha-refresh {
        min-width: 44px;
        padding: 0;
        border-radius: 10px;
    }

    .agreement {
        gap: 10px;
    }

    .agreement input {
        width: 16px;
        height: 16px;
    }

    .agreement span {
        font-size: 13px;
        line-height: 18px;
    }

    .actions {
        gap: 16px;
        margin-top: 8px;
    }

    .primary-button,
    .secondary-button {
        height: 50px;
        font-size: 17px;
        line-height: 17px;
        border-radius: 10px;
    }

    .alt-line {
        font-size: 14px;
        line-height: 14px;
    }

    .message {
        padding: 12px 14px;
        font-size: 13px;
        line-height: 18px;
        border-radius: 10px;
    }

    .legal-footer {
        position: relative;
        bottom: auto;
        left: auto;
        z-index: 2;
        max-width: 320px;
        margin: 20px auto 0;
        font-size: 13px;
        line-height: 20px;
        white-space: normal;
        transform: none;
    }
}

@media (max-width: 420px) {
    .language-toggle span {
        display: none;
    }

    .captcha-row {
        flex-wrap: wrap;
    }
}
