

.auth-shell {
    --auth-ink: #111210;
    --auth-ink-soft: #6d6d66;
    --auth-line: #dcdcd4;
    --auth-field: #fbfbf8;
    --auth-cream: #e8e8e2;
    --auth-radius: 26px;
    --auth-accent: #111210;

    background: #0c0c0c;
    color: var(--auth-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

.auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    height: 100vh;
    height: 100dvh;
    gap: 14px;
    padding: 14px;
    background: #0c0c0c;
}

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    padding: 34px 40px 30px;
    border-radius: var(--auth-radius);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(120% 80% at 70% 40%, #1d1d1c 0%, #0e0e0e 55%, #080808 100%);
    isolation: isolate;
}

.auth-brand-art {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.auth-beam,
.auth-facet {
    position: absolute;
    display: block;
    transform-origin: center;
}

.auth-beam {
    width: 62%;
    height: 190%;
    top: -45%;
    filter: blur(38px);
    opacity: .55;
    background: linear-gradient(180deg, rgba(255, 255, 255, .0) 0%, rgba(255, 255, 255, .30) 42%, rgba(255, 255, 255, 0) 100%);
}

.auth-beam--a {
    left: 38%;
    transform: rotate(24deg);
    animation: auth-drift-a 19s ease-in-out infinite;
}

.auth-beam--b {
    left: 60%;
    width: 34%;
    opacity: .28;
    transform: rotate(31deg);
    animation: auth-drift-b 23s ease-in-out infinite;
}

.auth-facet {
    width: 58%;
    height: 74%;
    right: -8%;
    top: 16%;
    border-radius: 4px;
    background: linear-gradient(135deg, #2a2a29 0%, #131313 48%, #050505 100%);
    box-shadow: -30px -20px 80px rgba(0, 0, 0, .6), 30px 30px 90px rgba(0, 0, 0, .5);
    transform: rotate(-12deg) skewY(-4deg);
    opacity: .92;
}

.auth-facet--b {
    width: 44%;
    height: 56%;
    right: 22%;
    top: 28%;
    background: linear-gradient(160deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .02) 40%, rgba(0, 0, 0, .55) 100%);
    transform: rotate(6deg) skewY(6deg);
    box-shadow: none;
    opacity: .85;
}

.auth-grain {
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: radial-gradient(rgba(255, 255, 255, .5) .5px, transparent .5px);
    background-size: 3px 3px;
    mix-blend-mode: overlay;
}

@keyframes auth-drift-a {

    0%,
    100% {
        transform: rotate(24deg) translateY(0);
    }

    50% {
        transform: rotate(26deg) translateY(-3%);
    }
}

@keyframes auth-drift-b {

    0%,
    100% {
        transform: rotate(31deg) translateY(0);
    }

    50% {
        transform: rotate(28deg) translateY(2%);
    }
}

.auth-brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.auth-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3em;
    
    cursor: pointer;
    border-radius: 8px;
    transition: opacity .18s ease;
}

.auth-mark:hover {
    opacity: .82;
}

.auth-mark:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .8);
    outline-offset: 6px;
}

.auth-mark svg {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
}

.auth-mark > span:last-child {
    flex: 0 0 auto;
    white-space: nowrap;
}

.auth-brand-rhythm {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .22em;
    color: rgba(255, 255, 255, .55);
    white-space: nowrap;
}

.auth-morph {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

.auth-mark .brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.auth-morph {
    position: relative;
    isolation: isolate;
}

.auth-morph::before {
    content: "";
    position: absolute;
    inset: -6px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.auth-morph.is-morphing::before {
    opacity: 0;
}

.auth-brand-copy {
    padding: 30px 0 0;
    max-width: 26ch;
    min-height: 0;
}

.auth-brand-kicker {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .58);
}

.auth-brand-title {
    margin: 26px 0 0;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -.045em;
    text-wrap: balance;
    color: #fff;
}

.auth-brand-rule {
    display: block;
    width: 40px;
    height: 1px;
    margin: 30px 0 22px;
    background: rgba(255, 255, 255, .35);
}

.auth-brand-sub {
    margin: 0;
    max-width: 34ch;
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .62);
}

.auth-brand-foot {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .24em;
    color: rgba(255, 255, 255, .42);
}

.auth-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px 28px;
    border-radius: var(--auth-radius);
    background: var(--auth-cream);
    
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    justify-content: safe center;
}

@media (min-width: 761px) and (max-height: 820px) {
    .auth-shell .auth-sheet {
        padding: 26px 36px 22px;
    }

    .auth-shell .auth-sheet-sub {
        margin: 8px 0 18px;
    }

    .auth-shell .auth-sheet-top {
        margin-bottom: 16px;
    }

    .auth-shell .auth-social-btn {
        padding: 10px 16px;
    }

    .auth-shell .auth-divider {
        margin: 12px 0;
    }

    .auth-shell .auth-field {
        margin-bottom: 11px;
    }

    .auth-shell .pw-rules {
        gap: 4px 14px;
        margin: -2px 0 10px;
    }

    .auth-shell .pw-match {
        margin: -4px 0 10px;
    }

    .auth-shell .auth-submit {
        padding: 12px 18px;
    }

    .auth-shell .auth-terms {
        margin-top: 10px;
    }

    .auth-shell .auth-sheet-alt {
        margin-top: 16px;
        padding-top: 14px;
    }
}

@media (min-width: 761px) and (max-height: 900px) {
    .auth-shell--register .auth-social,
    .auth-shell--register .auth-divider {
        display: none;
    }
}

.auth-pane-mobile {
    display: none;
}

.auth-sheet {
    width: 100%;
    max-width: 430px;
    padding: 38px 42px 32px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 24px 60px -30px rgba(0, 0, 0, .22);
    
    margin-block: auto;
}

.auth-sheet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.auth-sheet-eyebrow {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #a2a29a;
}

.auth-sheet-switch {
    font-size: 12px;
    font-weight: 600;
    color: var(--auth-ink);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    transition: border-color .18s ease;
}

.auth-sheet-switch:hover {
    border-color: var(--auth-ink);
}

.auth-sheet-title {
    margin: 0;
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.045em;
    color: var(--auth-ink);
}

.auth-sheet-sub {
    margin: 10px 0 26px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--auth-ink-soft);
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.5;
    background: #fdf1f2;
    border: 1px solid #f3d3d7;
    color: #8c2233;
}

.auth-alert svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.auth-alert--ok {
    background: #eef6ee;
    border-color: #cfe6cf;
    color: #2b6a35;
}

.auth-social {
    display: grid;
    gap: 9px;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e6e6df;
    background: #fff;
    color: #2a2a26;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.auth-social-btn svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.auth-social-btn:hover:not(:disabled) {
    background: #fafaf6;
    border-color: #d8d8cf;
}

.auth-social-btn:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    font-size: 11.5px;
    color: #a6a69e;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ecece6;
}

.auth-shell .auth-form {
    display: block;
}

.auth-shell .auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
}

.auth-shell .auth-field {
    margin-bottom: 14px;
}

.auth-shell .auth-field>label {
    display: block;
    margin: 0 0 7px 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: none;
    color: #6f6f68;
}

.auth-shell .auth-input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #e4e4dd;
    border-radius: 12px;
    background: var(--auth-field);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-shell .auth-input:focus-within {
    border-color: #1a1a17;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(17, 18, 16, .07);
}

.auth-shell .auth-input>svg {
    width: 16px;
    height: 16px;
    margin-left: 14px;
    flex: 0 0 auto;
    color: #a5a59d;
    transition: color .16s ease;
}

.auth-shell .auth-input:focus-within>svg {
    color: #4a4a44;
}

.auth-shell .auth-form input:not([type="checkbox"]) {
    width: 100%;
    min-width: 0;
    padding: 12px 14px 12px 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--auth-ink);
    font: inherit;
    font-size: 13.5px;
    outline: none;
}

.auth-shell .auth-form input::placeholder {
    color: #b6b6ae;
}

.auth-shell .auth-form input[aria-invalid="true"] {
    color: #8c2233;
}

.auth-shell .auth-form .auth-input:has(input[aria-invalid="true"]) {
    border-color: #e8b8bf;
    background: #fdf1f2;
}

.auth-eye {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-right: 4px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #a5a59d;
    cursor: pointer;
    flex: 0 0 auto;
    transition: color .16s ease, background .16s ease;
}

.auth-eye svg {
    width: 17px;
    height: 17px;
}

.auth-eye:hover {
    color: #33332e;
    background: #f2f2ec;
}

.auth-eye[aria-pressed="true"] {
    color: #111210;
    background: #efefe8;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 22px;
}

.auth-shell .auth-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    line-height: 1;
    letter-spacing: 0;
    color: #55554e;
    cursor: pointer;
    user-select: none;
}

.auth-shell .auth-check input {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex: 0 0 auto;
    margin: 0;
    border: 1px solid #cfcfc6;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.auth-shell .auth-check input:checked {
    background: var(--auth-ink);
    border-color: var(--auth-ink);
}

.auth-shell .auth-check input:checked::after {
    content: "";
    width: 8px;
    height: 4px;
    margin-top: -2px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.auth-link {
    font-size: 12.5px;
    font-weight: 600;
    color: #2a2a26;
    text-decoration: none;
    border-bottom: 1px solid #d9d9d0;
    transition: border-color .16s ease;
}

.auth-link:hover {
    border-color: #2a2a26;
}

.auth-shell .auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    border: 0;
    border-radius: 99px;
    background: var(--auth-ink);
    color: #fff;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, opacity .18s ease;
}

.auth-shell .auth-submit svg {
    width: 17px;
    height: 17px;
    transition: transform .2s ease;
}

.auth-shell .auth-submit:hover:not(:disabled) {
    background: #000;
    transform: translateY(-1px);
}

.auth-shell .auth-submit:hover:not(:disabled) svg {
    transform: translateX(3px);
}

.auth-shell .auth-submit:active:not(:disabled) {
    transform: translateY(0);
}

.auth-submit:disabled {
    opacity: .38;
    cursor: not-allowed;
}

.auth-submit:focus-visible,
.auth-social-btn:focus-visible,
.auth-eye:focus-visible,
.auth-sheet-switch:focus-visible,
.auth-link:focus-visible {
    outline: 2px solid #1a1a17;
    outline-offset: 2px;
}

.auth-terms {
    margin: 14px 0 0;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
    color: #9d9d95;
}

.auth-sheet-alt {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid #efefe9;
    font-size: 12.5px;
    color: #8b8b83;
    text-align: center;
}

.auth-sheet-alt a {
    color: var(--auth-ink);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #cfcfc6;
}

.auth-sheet-alt a:hover {
    border-color: var(--auth-ink);
}

.auth-sheet-alt:empty {
    display: none;
}

.auth-legal {
    margin: 0;
    font-size: 10.5px;
    letter-spacing: .06em;
    color: #9a9a92;
}

.auth-code-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f6f6f1;
    border: 1px solid #ecece4;
    font-size: 12.5px;
    line-height: 1.5;
    color: #5d5d55;
}

.auth-code-notice svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: #8d8d84;
}

.auth-code-notice strong {
    color: var(--auth-ink);
    font-weight: 600;
}

.otp-input {
    width: 100%;
    padding: 16px 14px !important;
    border: 1px solid #e4e4dd;
    border-radius: 14px;
    background: var(--auth-field);
    color: var(--auth-ink);
    font-size: 24px !important;
    font-weight: 600;
    letter-spacing: .55em;
    text-align: center;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.otp-input::placeholder {
    color: #d2d2ca;
    letter-spacing: .5em;
}

.otp-input:focus {
    border-color: #1a1a17;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(17, 18, 16, .07);
}

.otp-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.otp-link {
    padding: 0;
    border: 0;
    background: none;
    color: #2a2a26;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: #d3d3ca;
    text-underline-offset: 4px;
    transition: text-decoration-color .16s ease;
}

.otp-link:hover:not(:disabled) {
    text-decoration-color: currentColor;
}

.otp-link--muted {
    color: #94948c;
    font-weight: 500;
}

.otp-link:disabled {
    color: #b9b9b1;
    text-decoration: none;
    cursor: not-allowed;
}

.otp-expiry {
    margin: 16px 0 0;
    font-size: 11.5px;
    color: #9d9d95;
    text-align: center;
}

.auth-coming {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0 0 22px;
    padding: 18px;
    border-radius: 16px;
    background: #f6f6f1;
    border: 1px solid #ecece4;
}

.auth-coming-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e4e4dd;
    color: #2a2a26;
}

.auth-coming-mark svg {
    width: 20px;
    height: 20px;
}

.auth-coming p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #5d5d55;
}

.auth-shell .pw-rules {
    margin: -6px 0 18px;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
}

.auth-shell .pw-rule {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11.5px;
    line-height: 1.35;
    color: #9a9a92;
    transition: color .18s ease;
}

.auth-shell .pw-rule>span:last-child {
    min-width: 0;
}

.auth-shell .pw-rule-mark {
    position: relative;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    
    margin-top: 1px;
}

.auth-shell .pw-rule-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #cdcdc4;
    transition: opacity .18s ease, transform .18s ease;
}

.auth-shell .pw-rule-mark svg {
    position: absolute;
    width: 13px;
    height: 13px;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .18s ease, transform .22s cubic-bezier(.2, .9, .3, 1.4);
}

.auth-shell .pw-rule.is-met {
    color: #2f7a3e;
}

.auth-shell .pw-rule.is-met .pw-rule-dot {
    opacity: 0;
    transform: scale(.4);
}

.auth-shell .pw-rule.is-met .pw-rule-mark svg {
    opacity: 1;
    transform: none;
}

.auth-shell .pw-rule.is-failed {
    color: #a92d40;
}

.auth-shell .pw-rule.is-failed .pw-rule-dot {
    background: #a92d40;
}

.auth-shell .pw-match {
    margin: -6px 0 16px;
    padding-left: 0;
    font-size: 11.5px;
    color: #2f7a3e;
}

.auth-shell .auth-input:has(input.is-mismatch) {
    border-color: #e8b8bf;
    background: #fdf1f2;
}

@media (max-width: 1024px) {
    .auth-split {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    }

    .auth-brand {
        padding: 28px 30px 26px;
    }

    .auth-sheet {
        padding: 34px 34px 30px;
    }
}

@media (max-width: 760px) {
    .auth-split {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .auth-brand {
        display: none;
    }

    .auth-pane {
        padding: 0;
        border-radius: 0;
        background: #0c0c0c;
        justify-content: flex-start;
        gap: 0;
        min-height: 100dvh;
    }

    .auth-pane-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 22px 22px 18px;
        background: #0c0c0c;
        color: #fff;
    }

    .auth-pane-mobile .auth-mark {
        font-size: 14px;
    }

    .auth-menu {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 38px;
        height: 38px;
        padding: 0 8px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, .18);
        background: transparent;
        cursor: pointer;
        text-decoration: none;
    }

    .auth-menu span {
        display: block;
        height: 1.5px;
        background: #fff;
        border-radius: 2px;
    }

    .auth-sheet {
        width: 100%;
        max-width: none;
        flex: 1;
        padding: 26px 24px 32px;
        border-radius: 24px 24px 0 0;
        box-shadow: none;
    }

    .auth-legal {
        display: none;
    }
}

@media (max-width: 420px) {
    .auth-sheet {
        padding: 22px 18px 28px;
    }

    .auth-sheet-top {
        margin-bottom: 18px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-shell .pw-rules {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-beam {
        animation: none;
    }

    .auth-submit,
    .auth-submit svg,
    .auth-social-btn,
    .auth-eye {
        transition: none;
    }
}