@font-face {
    font-family: "Geist";
    src: url("fonts/Geist-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --auth-color-accent: #70b8a6;
    --auth-color-accent-hover: #86c7b7;
    --auth-color-accent-ink: #07110f;
    --auth-color-background: #0d1213;
    --auth-color-surface: #12191a;
    --auth-color-surface-raised: #182122;
    --auth-color-text: #f1f5f3;
    --auth-color-muted: #8e9c99;
    --auth-color-border: #293332;
    --auth-color-border-strong: #40504d;
    --auth-color-danger: #ed8f87;
    --auth-color-success: #76bfae;
    --auth-radius-control: 8px;
    --auth-radius-panel: 14px;
    --auth-shadow: 0 28px 80px rgba(2, 8, 8, .34);
    --auth-duration: 220ms;
    --auth-ease: cubic-bezier(.2, .7, .2, 1);
    --auth-z-content: 2;
    --auth-z-skip: 10;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    background: var(--auth-color-background);
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100dvh;
    color: var(--auth-color-text);
    background: var(--auth-color-background);
    font-family: "Geist", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

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

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

a {
    color: var(--auth-color-accent);
    text-underline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.auth-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: var(--auth-z-skip);
    padding: 10px 14px;
    color: var(--auth-color-accent-ink);
    background: var(--auth-color-accent);
    border-radius: var(--auth-radius-control);
    transform: translateY(-160%);
    transition: transform var(--auth-duration) var(--auth-ease);
}

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

.auth-language {
    position: fixed;
    top: 20px;
    right: 22px;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 9px;
}

.auth-language__label {
    color: var(--auth-color-muted);
    font-size: 12px;
}

.auth-language__select {
    min-width: 112px;
    height: 38px;
    padding: 0 30px 0 11px;
    color: var(--auth-color-text);
    background: rgba(18, 25, 26, .94);
    border: 1px solid var(--auth-color-border);
    border-radius: var(--auth-radius-control);
    font: inherit;
    font-size: 13px;
}

.auth-language__select:focus-visible {
    outline: 2px solid var(--auth-color-accent);
    outline-offset: 2px;
}

.auth-language--legal {
    position: static;
}

.auth-feedback {
    position: fixed;
    top: 22px;
    left: 50%;
    z-index: 20;
    width: min(440px, calc(100vw - 40px));
    min-height: 48px;
    padding: 13px 17px;
    border-radius: var(--auth-radius-control);
    box-shadow: var(--auth-shadow);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    transform: translateX(-50%);
}

.auth-feedback--error {
    color: #f7c0bb;
    background: #281b1b;
    border: 1px solid rgba(237, 143, 135, .45);
}

.auth-feedback--success {
    color: #d7f4ec;
    background: #142521;
    border: 1px solid rgba(118, 191, 174, .45);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 56fr) minmax(30rem, 44fr);
    width: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
}

.auth-visual {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 100dvh;
    padding: clamp(32px, 4.2vw, 72px);
    overflow: hidden;
    background: #111718;
}

.auth-visual__image,
.auth-visual__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.auth-visual__image {
    z-index: -3;
    object-fit: cover;
    filter: saturate(.72) contrast(1.08);
    transform: scale(1.015);
    animation: auth-image-settle 1.2s var(--auth-ease) both;
}

.auth-visual__shade {
    z-index: -2;
    background:
        radial-gradient(circle at 68% 30%, rgba(112, 184, 166, .19), transparent 36%),
        linear-gradient(180deg, rgba(7, 12, 13, .12), rgba(7, 12, 13, .7));
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .15;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.auth-visual__content,
.auth-visual__footer {
    position: relative;
    z-index: var(--auth-z-content);
}

.auth-visual__content {
    align-self: end;
    max-width: 680px;
    padding: 80px 0 clamp(72px, 11vh, 128px);
}

.auth-visual__kicker,
.auth-heading__context {
    margin: 0 0 14px;
    color: var(--auth-color-accent);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.auth-visual h2 {
    max-width: 650px;
    margin: 0;
    color: #f5f8f6;
    font-size: clamp(44px, 5vw, 76px);
    font-weight: 570;
    line-height: .99;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.auth-visual__content > p:last-child {
    max-width: 480px;
    margin: 26px 0 0;
    color: rgba(235, 242, 239, .72);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.65;
    text-wrap: pretty;
}

.auth-visual__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: rgba(235, 242, 239, .64);
    font-size: 12px;
    font-weight: 520;
    line-height: 1.5;
}

.auth-visual__status-dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    background: var(--auth-color-accent);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(112, 184, 166, .85);
}

.auth-visual__status-text {
    min-width: 0;
    overflow-wrap: break-word;
}

.auth-workspace {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 100dvh;
    padding: clamp(48px, 6vw, 96px) clamp(28px, 5.5vw, 88px) clamp(60px, 7vw, 108px);
    background:
        radial-gradient(circle at 8% 0, rgba(112, 184, 166, .06), transparent 32%),
        var(--auth-color-background);
}

.auth-workspace__inner {
    width: min(100%, 480px);
}

.auth-flow {
    width: 100%;
    animation: auth-flow-in 560ms var(--auth-ease) both;
}

.auth-heading {
    margin-bottom: 36px;
}

.auth-heading h1 {
    max-width: 30rem;
    margin: 0;
    color: var(--auth-color-text);
    font-size: clamp(34px, 3.1vw, 48px);
    font-weight: 610;
    line-height: 1.08;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.auth-heading > p:last-child {
    max-width: 29rem;
    margin: 14px 0 0;
    color: var(--auth-color-muted);
    font-size: 16px;
    line-height: 1.65;
    text-wrap: pretty;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    color: var(--auth-color-muted);
    font-size: 14px;
    font-weight: 540;
    text-decoration: none;
    transition: color var(--auth-duration) var(--auth-ease), transform var(--auth-duration) var(--auth-ease);
}

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

.auth-form {
    display: grid;
    gap: 20px;
}

.auth-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
    background: #0a0f10;
    border: 1px solid var(--auth-color-border);
    border-radius: 10px;
}

.auth-method {
    min-height: 42px;
    padding: 8px 14px;
    color: var(--auth-color-muted);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 580;
    transition: color var(--auth-duration) var(--auth-ease), background var(--auth-duration) var(--auth-ease), transform var(--auth-duration) var(--auth-ease);
}

.auth-method:hover {
    color: var(--auth-color-text);
}

.auth-method.is-active {
    color: var(--auth-color-text);
    background: var(--auth-color-surface-raised);
    box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

.auth-method:active,
.auth-button:active,
.auth-code-button:active {
    transform: translateY(1px) scale(.99);
}

.auth-field {
    min-width: 0;
}

.auth-field > label,
.auth-field__label-row label {
    display: block;
    margin: 0 0 8px;
    color: #dce4e1;
    font-size: 13px;
    font-weight: 560;
}

.auth-field__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.auth-field__label-row a {
    color: var(--auth-color-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color var(--auth-duration) var(--auth-ease);
}

.auth-field__label-row a:hover {
    color: var(--auth-color-accent);
}

.auth-field input:not([type="checkbox"]) {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 15px;
    color: var(--auth-color-text);
    caret-color: var(--auth-color-accent);
    background: var(--auth-color-surface);
    border: 1px solid var(--auth-color-border);
    border-radius: var(--auth-radius-control);
    outline: none;
    transition: border-color var(--auth-duration) var(--auth-ease), box-shadow var(--auth-duration) var(--auth-ease), background var(--auth-duration) var(--auth-ease);
}

.auth-field input:not([type="checkbox"]):hover {
    border-color: var(--auth-color-border-strong);
}

.auth-field input:not([type="checkbox"]):focus {
    background: #151e1f;
    border-color: var(--auth-color-accent);
    box-shadow: 0 0 0 3px rgba(112, 184, 166, .13);
}

.auth-field input[aria-invalid="true"] {
    border-color: var(--auth-color-danger);
}

.auth-field input[readonly] {
    color: var(--auth-color-muted);
    cursor: default;
}

.auth-password {
    position: relative;
}

.auth-password input {
    padding-right: 72px !important;
}

.auth-password button {
    position: absolute;
    top: 50%;
    right: 8px;
    min-width: 54px;
    padding: 7px 8px;
    color: var(--auth-color-muted);
    background: transparent;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 560;
    transform: translateY(-50%);
}

.auth-password button:hover {
    color: var(--auth-color-text);
    background: rgba(255, 255, 255, .035);
}

.auth-field__hint,
.auth-field__error,
.auth-field__status {
    min-height: 18px;
    margin: 6px 0 -6px;
    font-size: 12px;
    line-height: 1.45;
}

.auth-field__hint {
    color: var(--auth-color-muted);
}

.auth-field__error {
    color: var(--auth-color-danger);
}

.auth-field__status {
    color: var(--auth-color-success);
}

.auth-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 10px;
}

.auth-code-button {
    height: 52px;
    padding: 0 12px;
    color: var(--auth-color-accent);
    background: rgba(112, 184, 166, .08);
    border: 1px solid rgba(112, 184, 166, .28);
    border-radius: var(--auth-radius-control);
    cursor: pointer;
    font-size: 13px;
    font-weight: 610;
    transition: background var(--auth-duration) var(--auth-ease), border-color var(--auth-duration) var(--auth-ease), transform var(--auth-duration) var(--auth-ease);
}

.auth-code-button:hover:not(:disabled) {
    background: rgba(112, 184, 166, .13);
    border-color: rgba(112, 184, 166, .45);
}

.auth-code-button:disabled {
    color: var(--auth-color-muted);
    cursor: wait;
    opacity: .72;
}

.auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border-radius: var(--auth-radius-control);
    cursor: pointer;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: color var(--auth-duration) var(--auth-ease), background var(--auth-duration) var(--auth-ease), border-color var(--auth-duration) var(--auth-ease), transform var(--auth-duration) var(--auth-ease), box-shadow var(--auth-duration) var(--auth-ease);
}

.auth-button--primary {
    margin-top: 4px;
    color: var(--auth-color-accent-ink);
    background: var(--auth-color-accent);
    border: 1px solid var(--auth-color-accent);
    box-shadow: 0 12px 30px rgba(58, 122, 107, .18);
}

.auth-button--primary:hover:not(:disabled) {
    background: var(--auth-color-accent-hover);
    border-color: var(--auth-color-accent-hover);
    box-shadow: 0 16px 34px rgba(58, 122, 107, .25);
    transform: translateY(-1px);
}

.auth-button--secondary {
    color: var(--auth-color-text);
    background: var(--auth-color-surface);
    border: 1px solid var(--auth-color-border);
}

.auth-button--secondary:hover {
    background: var(--auth-color-surface-raised);
    border-color: var(--auth-color-border-strong);
}

.auth-button:disabled {
    cursor: wait;
    opacity: .7;
}

.auth-button__loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: auth-spin 700ms linear infinite;
}

.auth-button.is-loading .auth-button__loader {
    display: block;
}

.auth-google-mark {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: var(--auth-color-text);
    border: 1px solid var(--auth-color-border-strong);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.auth-google-flow {
    display: grid;
    gap: 14px;
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: #65716f;
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: var(--auth-color-border);
}

.auth-consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    color: var(--auth-color-muted);
    font-size: 12px;
    line-height: 1.55;
    cursor: pointer;
}

.auth-consent input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--auth-color-accent);
}

.auth-consent a {
    color: #b4d7cf;
}

.auth-consent--compact {
    margin-bottom: 1px;
}

.auth-alert,
.auth-status {
    min-height: 44px;
    padding: 11px 13px;
    border-radius: var(--auth-radius-control);
    font-size: 13px;
    line-height: 1.55;
}

.auth-alert--error {
    color: #f2b1ab;
    background: rgba(237, 143, 135, .08);
    border: 1px solid rgba(237, 143, 135, .22);
}

.auth-alert--success {
    color: #a8d8cc;
    background: rgba(118, 191, 174, .08);
    border: 1px solid rgba(118, 191, 174, .2);
}

.auth-status--success {
    margin-bottom: 20px;
    color: #a8d8cc;
    background: rgba(118, 191, 174, .08);
    border: 1px solid rgba(118, 191, 174, .2);
}

.auth-reset-stage {
    display: grid;
    gap: 20px;
}

.auth-flow__footer {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 30px;
    color: var(--auth-color-muted);
    font-size: 13px;
}

.auth-flow__footer a {
    font-weight: 620;
    text-decoration: none;
}

.auth-flow--complete,
.auth-flow--configuration {
    max-width: 440px;
}

.auth-complete-mark {
    width: 52px;
    height: 52px;
    margin-bottom: 28px;
    border: 1px solid rgba(112, 184, 166, .32);
    border-radius: 50%;
    box-shadow: inset 0 0 0 10px rgba(112, 184, 166, .06), 0 0 32px rgba(112, 184, 166, .12);
}

.auth-progress {
    height: 2px;
    margin-top: 32px;
    overflow: hidden;
    background: var(--auth-color-border);
}

.auth-progress span {
    display: block;
    width: 36%;
    height: 100%;
    background: var(--auth-color-accent);
    animation: auth-progress 1.1s var(--auth-ease) infinite;
}

.auth-configuration-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 28px;
    color: var(--auth-color-danger);
    border: 1px solid rgba(237, 143, 135, .35);
    border-radius: 12px 5px 12px 5px;
    font-size: 22px;
    font-weight: 650;
}

.auth-config-list {
    display: grid;
    gap: 8px;
    margin: 28px 0 20px;
}

.auth-config-list code,
.auth-config-command {
    padding: 11px 13px;
    color: #c8d2cf;
    background: var(--auth-color-surface);
    border: 1px solid var(--auth-color-border);
    border-radius: 6px;
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.auth-config-command {
    color: var(--auth-color-accent);
}

:focus-visible {
    outline: 2px solid var(--auth-color-accent);
    outline-offset: 3px;
}

@keyframes auth-flow-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes auth-image-settle {
    from {
        opacity: .5;
        transform: scale(1.045);
    }

    to {
        opacity: 1;
        transform: scale(1.015);
    }
}

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

@keyframes auth-progress {
    from {
        transform: translateX(-110%);
    }

    to {
        transform: translateX(390%);
    }
}

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

    .auth-visual {
        min-height: 240px;
        padding: 30px 36px;
    }

    .auth-visual__content {
        align-self: end;
        padding: 54px 0 2px;
    }

    .auth-visual h2 {
        max-width: 560px;
        font-size: clamp(34px, 6vw, 50px);
    }

    .auth-visual__content > p:last-child,
    .auth-visual__footer {
        display: none;
    }

    .auth-workspace {
        min-height: auto;
        padding: 58px 32px 76px;
    }

    .auth-workspace__inner {
        width: min(100%, 520px);
    }
}

@media (max-width: 560px) {
    .auth-language:not(.auth-language--legal) {
        top: 12px;
        right: 12px;
    }

    .auth-language:not(.auth-language--legal) .auth-language__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .auth-feedback {
        top: 62px;
        width: calc(100vw - 24px);
    }

    .auth-visual {
        display: none;
    }

    .auth-workspace {
        display: block;
        min-height: 100dvh;
        padding: 28px 20px 48px;
    }

    .auth-heading {
        margin-bottom: 30px;
    }

    .auth-heading h1 {
        font-size: 34px;
    }

    .auth-heading > p:last-child {
        font-size: 15px;
    }

    .auth-back-link {
        margin-bottom: 32px;
    }

    .auth-code-row {
        grid-template-columns: minmax(0, 1fr) 116px;
    }

    .auth-code-button {
        padding: 0 8px;
        font-size: 12px;
    }

    .auth-flow__footer {
        flex-wrap: wrap;
    }
}

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

.auth-legal-page {
    min-height: 100%;
    background: var(--auth-color-background);
    color: var(--auth-color-text);
}

.auth-legal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 40px;
    border-bottom: 1px solid var(--auth-color-border);
    background: rgba(13, 18, 19, .94);
    backdrop-filter: blur(16px);
}

.auth-legal-back {
    color: var(--auth-color-text);
    text-decoration: none;
}

.auth-legal-back {
    color: var(--auth-color-accent);
    font-size: .9rem;
}

.auth-legal-main {
    width: min(100% - 48px, 820px);
    margin: 0 auto;
    padding: 80px 0 120px;
}

.auth-legal-title {
    padding-bottom: 36px;
    border-bottom: 1px solid var(--auth-color-border);
}

.auth-legal-title span {
    color: var(--auth-color-muted);
}

.auth-legal-title h1 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.auth-legal-intro {
    margin: 36px 0 52px;
    color: var(--auth-color-text);
    font-size: 1.08rem;
    line-height: 1.8;
}

.auth-legal-section {
    margin-top: 42px;
}

.auth-legal-section h2 {
    margin: 0 0 14px;
    font-size: 1.2rem;
    letter-spacing: 0;
}

.auth-legal-section p {
    margin: 10px 0 0;
    color: var(--auth-color-muted);
    line-height: 1.85;
}

.auth-legal-section a {
    color: var(--auth-color-accent);
}

@media (max-width: 640px) {
    .auth-legal-header {
        padding: 0 20px;
    }

    .auth-legal-main {
        width: min(100% - 40px, 820px);
        padding: 52px 0 80px;
    }
}
