@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }

:root {
    --auth-primary: var(--main-color-primary, #4460f1);
    --auth-primary-2: #6d7cff;
    --auth-bg: #f6f7fb;
    --auth-surface: #fff;
    --auth-text: #202434;
    --auth-muted: #777d8e;
    --auth-border: #e7eaf3;
    --auth-soft: #f1f3ff;
    --auth-success: #22c56f;
    --auth-danger: #ff6b61;
    --auth-warning: #f59e0b;
    --auth-shadow: 0 26px 70px rgba(38, 47, 88, .16);
    --auth-form-shadow: 0 18px 30px rgba(38, 47, 88, .07);
    --auth-viewport-height: 100dvh;
}

html[data-theme="dark"] {
    --auth-bg: #111522;
    --auth-surface: #181d2d;
    --auth-text: #f3f6ff;
    --auth-muted: #a5adc2;
    --auth-border: #2b3145;
    --auth-soft: #222941;
    --auth-shadow: 0 26px 70px rgba(0, 0, 0, .34);
    --auth-form-shadow: 0 18px 30px rgba(0, 0, 0, .22);
}

html, body {
    height: 100%;
    margin: 0;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: Poppins, sans-serif;
    overscroll-behavior: none;
}

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

.auth-prototype-body {
    overflow: hidden;
}

.auth-prototype-body.auth-mode-emails {
    overflow-y: auto;
}

.auth-email-preview-body {
    overflow-y: auto;
}

.auth-prototype-body a {
    text-decoration: none;
}

.auth-floating-back {
    position: fixed;
    z-index: 80;
    top: 50%;
    left: max(8px, env(safe-area-inset-left));
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--auth-border) 74%, transparent);
    border-radius: 13px;
    background: color-mix(in srgb, var(--auth-surface) 88%, transparent);
    color: var(--auth-primary);
    box-shadow: 0 12px 30px rgba(38, 47, 88, .14);
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-floating-back:active {
    transform: translateY(-50%) scale(.96);
}

.auth-shell {
    position: relative;
    display: grid;
    height: var(--auth-viewport-height);
    min-height: 0;
    gap: 18px;
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
}

.auth-brand-panel {
    position: relative;
    display: none;
    min-height: calc(var(--auth-viewport-height) - 36px);
    overflow: hidden;
    border-radius: 34px;
    background:
        radial-gradient(circle at 20% 18%, rgba(255,255,255,.38), transparent 24%),
        linear-gradient(145deg, #2f49ea 0%, #5268ff 48%, #1d2440 100%);
    color: #fff;
    box-shadow: var(--auth-shadow);
}

.auth-brand-panel-v2 {
    background:
        radial-gradient(circle at 20% 18%, rgba(255,255,255,.30), transparent 25%),
        linear-gradient(150deg, #3150f6 0%, #5d70ff 48%, #202b57 100%);
    box-shadow: 0 18px 46px rgba(38, 47, 88, .10);
}

.auth-brand-panel-v2::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(255,255,255,.10), transparent 36%),
        linear-gradient(0deg, rgba(15, 24, 59, .22), transparent 50%);
    pointer-events: none;
}

.auth-brand-orbit {
    position: absolute;
    top: -11%;
    right: -7%;
    width: min(42vw, 430px);
    aspect-ratio: 1;
    border-radius: 999px;
    background:
        radial-gradient(circle, transparent 0 31%, rgba(255,255,255,.12) 31.3% 31.8%, transparent 32.1%),
        radial-gradient(circle, transparent 0 53%, rgba(255,255,255,.11) 53.2% 53.7%, transparent 54%),
        radial-gradient(circle, transparent 0 74%, rgba(255,255,255,.10) 74.2% 74.7%, transparent 75%);
    opacity: .86;
    pointer-events: none;
}

.auth-brand-topbar {
    position: absolute;
    z-index: 3;
    top: 34px;
    right: 34px;
    left: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.auth-brand-pill {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 14px 30px rgba(28, 37, 85, .10);
    backdrop-filter: blur(10px);
}

.auth-brand-pill i {
    font-size: 12px;
}

.auth-brand-top-logo {
    flex: 0 0 auto;
    width: 150px;
    filter: brightness(0) invert(1);
}

.auth-brand-card {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: end;
    justify-items: start;
    min-height: 100%;
    padding: 64px 54px 128px;
}

.auth-brand-card p {
    max-width: 520px;
    margin: 0;
    font-size: clamp(32px, 4.15vw, 54px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.auth-brand-list {
    display: grid;
    gap: 11px;
    max-width: 330px;
    margin: 40px 0 0;
    padding: 0;
    color: rgba(255,255,255,.86);
    font-size: 11px;
    line-height: 1.45;
    list-style: none;
}

.auth-brand-list li {
    display: grid;
    grid-template-columns: 17px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
}

.auth-brand-list i {
    margin-top: 2px;
    color: rgba(255,255,255,.95);
    font-size: 13px;
}

.auth-brand-footer {
    position: absolute;
    z-index: 3;
    right: 54px;
    bottom: 24px;
    left: 54px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.86);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

.auth-brand-footer span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
}

.auth-brand-footer span + span {
    border-left: 1px solid rgba(255,255,255,.14);
}

.auth-brand-footer i {
    color: rgba(255,255,255,.92);
    font-size: 15px;
    font-weight: 300;
}

.auth-card {
    display: grid;
    align-content: center;
    width: min(100%, 450px);
    min-height: calc(var(--auth-viewport-height) - 36px);
    min-width: 0;
    margin: 0 auto;
    padding: 28px 22px;
}

.auth-card > * {
    min-width: 0;
}

.auth-mobile-logo {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: 34px;
    transform: translateY(-14px);
}

.auth-mobile-logo img { width: 132px; }

.auth-card-heading {
    margin-bottom: 20px;
    text-align: center;
}

.auth-card-heading h1 {
    margin: 0;
    color: var(--auth-text);
    font-size: clamp(25px, 3.7vw, 34px);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.auth-card-heading p {
    max-width: 360px;
    margin: 8px auto 0;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.5;
}

.auth-form {
    display: grid;
    gap: 12px;
    width: 100%;
    padding: 20px;
    border: 1px solid var(--auth-border);
    border-radius: 28px;
    background: color-mix(in srgb, var(--auth-surface) 94%, transparent);
    box-shadow: var(--auth-form-shadow);
}

.auth-step {
    display: none;
    gap: 12px;
}

.auth-step.is-active {
    display: grid;
}

.auth-step-title {
    margin: 0;
    color: var(--auth-text);
    font-size: 12px;
    font-weight: 700;
}

.auth-google-button,
.auth-primary,
.auth-secondary,
.auth-link-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding-inline: 24px;
    text-decoration: none;
}

.auth-google-entry {
    display: grid;
    width: 100%;
}

.auth-google-native {
    display: none;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
}

.auth-google-entry.is-native-ready .auth-google-native {
    display: flex;
}

.auth-google-entry.is-native-ready [data-google-fallback] {
    display: none;
}

.auth-google-native > div,
.auth-google-native iframe {
    width: 100% !important;
    max-width: 100% !important;
}

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

.auth-google-button i { color: #ea4335; }

.auth-google-unavailable {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--auth-border);
    border-radius: 18px;
    background: var(--auth-soft);
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.auth-google-unavailable i {
    flex: 0 0 auto;
    color: var(--auth-primary);
    font-size: 15px;
}

.auth-primary {
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-2));
    color: #fff;
    box-shadow: 0 14px 28px rgba(68, 96, 241, .24);
}

.auth-secondary {
    border: 1px solid var(--auth-border);
    background: var(--auth-soft);
    color: var(--auth-primary);
}

.auth-countdown {
    white-space: nowrap;
}

.auth-divider {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--auth-muted);
    font-size: 11px;
}

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

.auth-field {
    position: relative;
    display: grid;
    gap: 6px;
}

.auth-field span {
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 600;
}

.auth-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 45px 0 15px;
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    outline: 0;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-field input:focus {
    border-color: var(--auth-border);
    box-shadow: none;
}

.auth-password-toggle {
    position: absolute;
    right: 8px;
    bottom: 6px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
}

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

.auth-row > .auth-primary,
.auth-row > .auth-secondary {
    min-width: 112px;
}

.auth-row a,
.auth-switch a {
    color: var(--auth-primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-row a {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1.2;
}

.auth-switch a {
    font-size: inherit;
}

.auth-login-options {
    gap: 8px;
}

.auth-login-options .auth-check {
    align-items: center;
    min-width: 0;
}

.auth-login-options a {
    padding: 4px 0;
    text-align: right;
}

.auth-check {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: var(--auth-muted);
    font-size: 11px;
    line-height: 1.45;
    cursor: pointer;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-primary);
    cursor: pointer;
}

.auth-check input:disabled {
    cursor: not-allowed;
}

.auth-terms { margin-top: 2px; }

.auth-switch {
    margin: 0;
    color: var(--auth-muted);
    font-size: 11px;
    text-align: center;
}

.auth-note {
    margin: 0;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.auth-icon-hero {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 2px;
    place-items: center;
    border-radius: 22px;
    background: var(--auth-soft);
    color: var(--auth-primary);
    font-size: 24px;
}

.auth-password-meter {
    display: grid;
    gap: 7px;
}

.auth-password-meter > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.auth-password-meter span {
    height: 5px;
    border-radius: 999px;
    background: var(--auth-border);
}

.auth-password-meter strong {
    font-size: 12px;
}

.auth-password-meter p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 11px;
    line-height: 1.45;
}

.auth-password-meter[data-level="1"] span:nth-child(-n+1) { background: var(--auth-danger); }
.auth-password-meter[data-level="2"] span:nth-child(-n+2) { background: #ffb25f; }
.auth-password-meter[data-level="3"] span:nth-child(-n+3) { background: var(--auth-primary); }
.auth-password-meter[data-level="4"] span:nth-child(-n+4) { background: var(--auth-success); }

.auth-otp {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.auth-otp input {
    min-width: 0;
    height: 60px;
    border: 1px solid var(--auth-border);
    border-radius: 18px;
    outline: 0;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.auth-inline-status {
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--auth-soft);
    color: var(--auth-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.auth-inline-status.is-danger {
    background: color-mix(in srgb, var(--auth-danger) 13%, transparent);
    color: var(--auth-danger);
}

.auth-inline-status.is-success {
    background: color-mix(in srgb, var(--auth-success) 13%, transparent);
    color: var(--auth-success);
}

.auth-text-button {
    justify-self: center;
    border: 0;
    background: transparent;
    color: var(--auth-primary);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.auth-otp-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.auth-otp-actions button {
    min-height: 32px;
    border: 1px solid var(--auth-border);
    border-radius: 999px;
    background: var(--auth-surface);
    color: var(--auth-muted);
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}

.auth-invite-card,
.auth-success {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--auth-border);
    border-radius: 20px;
    background: var(--auth-bg);
}

.auth-invite-card > span,
.auth-success > span {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 16px;
    background: var(--auth-soft);
    color: var(--auth-primary);
}

.auth-invite-card strong,
.auth-invite-card small,
.auth-success strong {
    display: block;
}

.auth-invite-card strong { font-size: 13px; }
.auth-invite-card small { color: var(--auth-muted); font-size: 11px; }

.auth-success {
    display: grid;
    justify-items: center;
    padding: 24px 18px;
    text-align: center;
}

.auth-success > span {
    background: color-mix(in srgb, var(--auth-success) 14%, transparent);
    color: var(--auth-success);
}

.auth-success strong { font-size: 20px; }
.auth-success p { margin: 0; color: var(--auth-muted); font-size: 12px; line-height: 1.55; }

.auth-stepper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.auth-stepper span {
    height: 5px;
    border-radius: 999px;
    background: var(--auth-border);
}

.auth-stepper .is-active { background: var(--auth-primary); }

.auth-document-section {
    display: none;
    gap: 12px;
}

.auth-document-section.is-active {
    display: grid;
}

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

.auth-choice-grid label { cursor: pointer; }
.auth-choice-grid label { display: grid; }
.auth-choice-grid input { position: absolute; opacity: 0; pointer-events: none; }

.volcano-action-loading {
    pointer-events: none;
}

.volcano-action-loading .volcano-action-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    vertical-align: -.15em;
    animation: volcano-action-spin .65s linear infinite;
}

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

.auth-choice-grid span {
    display: grid;
    height: 100%;
    min-height: 108px;
    gap: 5px;
    align-content: start;
    padding: 13px;
    border: 1px solid var(--auth-border);
    border-radius: 20px;
    background: var(--auth-bg);
}

.auth-choice-grid input:checked + span {
    border-color: var(--auth-primary);
    background: var(--auth-soft);
}

.auth-choice-grid i { color: var(--auth-primary); font-size: 20px; }
.auth-choice-grid strong { font-size: 13px; }
.auth-choice-grid small { color: var(--auth-muted); font-size: 11px; line-height: 1.35; }

.auth-toast {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: 22px;
    width: min(560px, calc(100vw - 48px));
    max-width: none;
    padding: 12px 15px;
    border-radius: 16px;
    background: #202434;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: .2s ease;
    text-align: center;
    box-shadow: 0 18px 44px rgba(20, 28, 55, .16);
}

.auth-toast.is-info { background: #202434; color: #fff; }
.auth-toast.is-success { background: var(--auth-success); color: #fff; }
.auth-toast.is-warning { background: var(--auth-warning); color: #271500; }
.auth-toast.is-danger { background: #ef4444; color: #fff; }

.auth-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.auth-email-gallery {
    display: grid;
    gap: 14px;
    max-height: min(680px, calc(var(--auth-viewport-height) - 180px));
    overflow-y: auto;
    padding-right: 4px;
}

.auth-email-preview {
    display: grid;
    gap: 11px;
    padding: 18px;
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    background: var(--auth-surface);
}

.auth-email-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-email-preview-header img {
    width: 112px;
}

.auth-email-preview h2 {
    margin: 0;
    color: var(--auth-text);
    font-size: 18px;
    letter-spacing: -.03em;
}

.auth-email-preview p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 12px;
    line-height: 1.55;
}

.auth-email-code {
    padding: 14px;
    border-radius: 18px;
    background: var(--auth-soft);
    color: var(--auth-primary);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .22em;
    text-align: center;
}

.auth-email-preview a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-2));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.auth-email-preview small {
    color: var(--auth-muted);
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
}

.auth-email-page {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 760px);
    gap: 28px;
    width: min(100%, 1240px);
    min-height: var(--auth-viewport-height);
    margin: 0 auto;
    padding: 26px;
}

.auth-email-page-hero {
    position: sticky;
    top: 26px;
    display: grid;
    align-content: end;
    min-height: calc(var(--auth-viewport-height) - 52px);
    overflow: hidden;
    padding: 34px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 82% 12%, rgba(255,255,255,.22), transparent 25%),
        linear-gradient(145deg, #2f49ea 0%, #5268ff 50%, #1d2440 100%);
    color: #fff;
    box-shadow: var(--auth-shadow);
}

.auth-email-home-link {
    position: absolute;
    top: 24px;
    left: 24px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    width: max-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.auth-email-page-hero img {
    width: 156px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.auth-email-page-hero h1 {
    max-width: 420px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -.06em;
}

.auth-email-page-hero p {
    order: 3;
    max-width: 430px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    line-height: 1.6;
}

.auth-email-page-hero span {
    display: inline-flex;
    width: fit-content;
    margin-top: 22px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 999px;
    color: rgba(255,255,255,.86);
    font-size: 12px;
    font-weight: 600;
}

.auth-email-page-content {
    display: grid;
    align-content: start;
    gap: 18px;
    min-width: 0;
}

.auth-email-guidelines,
.auth-email-model {
    border: 1px solid var(--auth-border);
    border-radius: 28px;
    background: color-mix(in srgb, var(--auth-surface) 94%, transparent);
    box-shadow: 0 18px 54px rgba(38, 47, 88, .08);
}

.auth-email-guidelines {
    padding: 20px;
}

.auth-email-guidelines strong {
    display: block;
    color: var(--auth-text);
    font-size: 17px;
    letter-spacing: -.03em;
}

.auth-email-guidelines p {
    margin: 8px 0 0;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.65;
}

.auth-email-model-list {
    display: grid;
    gap: 18px;
}

.auth-email-model {
    overflow: hidden;
}

.auth-email-model-header {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--auth-border);
}

.auth-email-model-header span {
    display: block;
    color: var(--auth-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}

.auth-email-model-header h2 {
    margin: 4px 0 0;
    color: var(--auth-text);
    font-size: 20px;
    letter-spacing: -.04em;
}

.auth-email-model-header button {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    background: var(--auth-soft);
    color: var(--auth-primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.auth-email-render {
    overflow: auto;
    background: #f4f6fb;
}

@media (min-width: 1100px) {
    .auth-shell {
        grid-template-columns: minmax(0, .98fr) minmax(360px, 450px);
        align-items: start;
        gap: clamp(22px, 2.4vw, 32px);
        width: min(calc(100% - 64px), 1280px);
        margin: 0 auto;
        padding: clamp(18px, 2.4vh, 24px) 0;
        overflow-x: visible;
    }

    .auth-brand-panel {
        display: block;
        min-height: 0;
        height: min(calc(var(--auth-viewport-height) - 48px), 820px);
        max-height: calc(var(--auth-viewport-height) - 48px);
    }

    .auth-card {
        align-content: start;
        min-height: 0;
        height: min(calc(var(--auth-viewport-height) - 48px), 820px);
        max-height: calc(var(--auth-viewport-height) - 48px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0;
        scrollbar-width: none;
    }

    .auth-card::-webkit-scrollbar { display: none; }

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

.auth-prototype-body.auth-mode-emails .auth-shell {
    min-height: var(--auth-viewport-height);
    height: auto;
    overflow: visible;
}

.auth-prototype-body.auth-mode-emails .auth-card {
    align-content: start;
    min-height: var(--auth-viewport-height);
    height: auto;
    overflow: visible;
}

@media (min-width: 1280px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr) minmax(400px, 480px);
    }
}

@media (min-width: 1100px) and (max-height: 820px) {
    .auth-brand-card {
        padding: 34px 34px 104px;
    }

    .auth-brand-card p {
        max-width: 470px;
        font-size: clamp(30px, 3.35vw, 44px);
        line-height: 1.05;
    }

    .auth-brand-list {
        gap: 9px;
        max-width: 310px;
        font-size: 11px;
    }

    .auth-brand-footer {
        right: 34px;
        bottom: 24px;
        left: 34px;
        font-size: 10px;
    }

    .auth-brand-footer span {
        min-height: 26px;
        gap: 8px;
        padding: 0 12px;
    }

    .auth-brand-footer i {
        font-size: 13px;
    }

    .auth-card {
        align-content: start;
    }
}

@media (min-width: 1100px) {
    .auth-prototype-body:not(.auth-mode-emails) .auth-shell {
        align-items: stretch;
        grid-template-rows: minmax(0, 1fr);
    }

    .auth-prototype-body:not(.auth-mode-emails) .auth-shell > section {
        min-height: 0;
        height: 100%;
        max-height: none;
    }

    .auth-prototype-body:not(.auth-mode-emails) .auth-card {
        align-content: center;
    }
}

@media (max-width: 1099px) {
    .auth-field input,
    .auth-otp input {
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .auth-shell {
        padding: 0;
    }

    .auth-card {
        min-height: var(--auth-viewport-height);
        padding: calc(18px + env(safe-area-inset-top)) 18px 18px;
    }

    .auth-form {
        gap: 11px;
        padding: 18px;
        border-radius: 26px;
    }

    .auth-row {
        align-items: center;
        gap: 10px;
    }

    .auth-step .auth-row > .auth-primary,
    .auth-step .auth-row > .auth-secondary {
        flex: 1 1 0;
        min-width: 112px;
        padding-inline: 18px;
    }

    .auth-login-options {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .auth-login-options a {
        align-self: auto;
        padding: 0;
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .auth-otp {
        gap: 6px;
    }

    .auth-otp input {
        height: 52px;
        border-radius: 16px;
        font-size: 20px;
    }

    .auth-toast {
        width: calc(100vw - 48px);
        bottom: calc(22px + env(safe-area-inset-bottom));
    }

    .auth-choice-grid {
        gap: 8px;
    }

    .auth-choice-grid span {
        min-height: 116px;
    }
}

@media (max-width: 900px) {
    .auth-email-page {
        grid-template-columns: 1fr;
        padding: calc(18px + env(safe-area-inset-top)) 14px 18px;
    }

    .auth-email-page-hero {
        position: relative;
        top: auto;
        min-height: auto;
        padding: 72px 22px 26px;
        border-radius: 28px;
    }

    .auth-email-page-hero img {
        width: 132px;
    }

    .auth-email-page-hero h1 {
        font-size: 32px;
    }

    .auth-email-page-hero p {
        font-size: 13px;
    }

    .auth-email-page-hero span {
        border-radius: 18px;
        line-height: 1.45;
    }

    .auth-email-model-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-email-model-header button {
        width: 100%;
    }
}
