html:has(body.auth-page-body),
body.auth-page-body { width: 100%; min-height: 100%; margin: 0; background: #fff; }
body.auth-page-body { overflow: hidden; }
.auth-page-body #page { height: 100dvh; overflow: hidden; }
.auth-mobile-logo { display: none; }

.auth-split-page { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(540px, 1fr); height: 100dvh; min-height: 0; background: #fff; }
.auth-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 20px;
    border-radius: 24px;
    overflow: hidden auto;
    background:
        linear-gradient(180deg, transparent 45%, rgba(32, 10, 126, .42)),
        radial-gradient(ellipse at 0% 0%, #b6f5fa 0%, rgba(139, 213, 255, .85) 12%, transparent 46%),
        radial-gradient(ellipse at 100% 4%, #c77af0 0%, transparent 46%),
        linear-gradient(100deg, #2511ac 5%, #4930d9 36%, #b9dafa 75%, #eee5fc 100%);
    color: #fff;
}
.auth-showcase-content { position: relative; z-index:3; flex: 0 0 auto; margin-top: auto; padding: 28px clamp(28px, 4vw, 56px); }
.auth-corner-logo { position: absolute; right: 32px; bottom: 22px; display: inline-flex; align-items: center; opacity: .88; }
.auth-corner-logo img { display: block; width: auto; height: 25px; }
.auth-showcase-content h2 { margin: 0 0 18px; color: #fff; font-size: clamp(83px, 3.2vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: 0; overflow-wrap: anywhere; }
.auth-showcase-content > p { max-width: 520px; margin: 0 0 26px; color: rgba(255, 255, 255, .94); font-size: 18px; line-height: 1.65; }
.auth-benefits { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.auth-benefits li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .94); font-size: 17px; }
.auth-benefits li::before { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: rgba(255, 255, 255, .75); content: ''; }

.auth-form-side { position: relative; display: flex; min-width: 0; height: 100dvh; min-height: 0; align-items: center; justify-content: center; padding: 34px clamp(34px, 7vw, 92px); overflow-y: auto; background: #fff; }
.auth-form-container { width: min(100%, 500px); height: min(610px, 100%); }
.auth-copy-block { min-height: 150px; }
.auth-kicker { display: block; margin-bottom: 12px; color: #72549e; font-size: 11px; line-height: 1; font-weight: 750; text-transform: uppercase; }
.auth-form-container h1 { margin: 0; color: #151820; font-size: clamp(34px, 3.4vw, 50px); line-height: 1.08; font-weight: 700; letter-spacing: 0; }
.auth-intro { margin: 16px 0 24px; color: #777b84; font-size: 15px; line-height: 1.55; }
.auth-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 330px); margin: 0 auto 26px; padding: 5px; border: 1px solid #edeef1; border-radius: 28px; background: #f5f5f6; box-shadow: 0 8px 24px rgba(23, 27, 37, .08); }
.auth-switch button { display: flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 14px; border: 0; border-radius: 22px; background: transparent; color: #747780; font-size: 14px; font-weight: 650; cursor: pointer; }
.auth-switch button.active { background: #171923; color: #fff; box-shadow: 0 5px 16px rgba(23, 25, 35, .18); }
.auth-google-link { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px;     margin: 21px 0 21px; border: 1px solid #e1e3e7; border-radius: 9px; color: #3d4149; font-size: 12px; font-weight: 600; text-decoration: none; }
.auth-google-link:hover { border-color: #babec6; color: #5b3d82; }
.auth-google-link img { width: 17px; height: 17px; object-fit: contain; }
.auth-mode-panel[hidden],
.auth-step[hidden],
.auth-status[hidden],
.auth-code-resend[hidden] { display: none !important; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: #9a9da5; font-size: 11px; text-transform: uppercase; }
.auth-divider::before,
.auth-divider::after { height: 1px; flex: 1; background: #e8e9ed; content: ''; }
.auth-status { margin: 0 0 16px; padding: 11px 13px; border-radius: 8px; background: #f4f5f7; color: #5d626c; font-size: 12px; line-height: 1.45; }
.auth-status--error { background: #fff0ef; color: #a43027; }
.auth-status--success { background: #edf8f1; color: #157347; }
.auth-form--single { grid-template-columns: minmax(0, 1fr); }
.auth-form--single .auth-field,
.auth-form--single .auth-submit { grid-column: 1; }
.auth-step-back { margin: 0 0 18px; padding: 0; border: 0; background: transparent; color: #535861; font-size: 13px; font-weight: 650; cursor: pointer; }
.auth-email-summary { width: fit-content; max-width: 100%; margin-bottom: 12px; padding: 8px 12px; overflow: hidden; border-radius: 7px; background: #f3f1f7; color: #5b3e7f; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.auth-step-copy { margin: 0 0 20px; color: #747881; font-size: 14px; line-height: 1.55; }
.auth-identity-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding: 12px 14px; border: 1px solid #e7e8eb; border-radius: 10px; background: #fafafa; }
.auth-identity-row div { min-width: 0; }
.auth-identity-row span { display: block; margin-bottom: 3px; color: #8a8e97; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.auth-identity-row strong { display: block; overflow: hidden; color: #242830; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.auth-identity-row button { flex: 0 0 auto; padding: 0; border: 0; background: transparent; color: #65458e; font-size: 12px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.auth-password-toggle { position: absolute; top: 50%; right: 13px; padding: 4px; transform: translateY(-50%); border: 0; background: transparent; color: #69517f; font-size: 11px; font-weight: 700; cursor: pointer; }
.auth-form .form-control[type="password"],
.auth-form .form-control[type="text"]:has(+ .auth-password-toggle) { padding-right: 62px !important; }
.auth-submit--full { width: 100%; }
.auth-choice-divider { display: flex; align-items: center; gap: 12px; margin: 17px 0; color: #9a9da5; font-size: 11px; text-transform: uppercase; }
.auth-choice-divider::before,
.auth-choice-divider::after { height: 1px; flex: 1; background: #e8e9ed; content: ''; }
.auth-secondary-action { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; border: 1px solid #dfe1e5; border-radius: 24px; background: #fff; color: #252932; font-size: 14px; font-weight: 700; cursor: pointer; }
.auth-secondary-action:hover { border-color: #b9bdc5; background: #fafafa; }
.auth-secondary-action:disabled { cursor: not-allowed; opacity: .58; }
.auth-forgot-link { display: block; width: fit-content; margin: 15px auto 0; color: #626771; font-size: 12px; font-weight: 600; text-decoration: underline; }
.auth-field-help { display: block; margin-top: 7px; color: #858993; font-size: 11px; line-height: 1.4; }
.auth-code-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.auth-code-box { width: 100%; aspect-ratio: 1; min-width: 0; border: 1px solid #daddE3; border-radius: 10px; background: #fafafa; color: #171923; font-size: 27px; font-weight: 700; text-align: center; outline: 0; }
.auth-code-box:focus { border-color: #7351a2; background: #fff; box-shadow: 0 0 0 3px rgba(115, 81, 162, .11); }
.auth-code-timer { min-height: 20px; margin: 16px 0 0; color: #858993; font-size: 12px; text-align: center; }
.auth-code-resend { display: block; margin: 10px auto 0; padding: 0; border: 0; background: transparent; color: #5b3d82; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.auth-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.auth-form.auth-form--single { grid-template-columns: minmax(0, 1fr); }
.auth-form.auth-form--single { gap: 12px; }
.auth-field { min-width: 0; }
.auth-field--full,
.auth-form-message,
.auth-form-actions,
.password-rules,
.auth-terms { grid-column: 1 / -1; }
.auth-field label { display: block; margin: 0 0 7px; color: #3c4048; font-size: 13px; font-weight: 600; }
.auth-control-wrap { position: relative; }
.auth-form .form-control { display: block; width: 100%; height: 48px !important; margin: 0 !important; padding: 8px 15px !important; border: 1px solid #dcdee3 !important; border-radius: 9px !important; background: #fff !important; color: #242830 !important; font-size: 14px !important; box-shadow: none !important; transition: border-color 160ms ease, box-shadow 160ms ease; }
.auth-form .form-control:focus { border-color: #7351a2 !important; box-shadow: 0 0 0 3px rgba(115, 81, 162, .11) !important; outline: 0; }
.auth-form .btn-show-pass { position: absolute; top: 50%; right: 14px; z-index: 2; display: grid; width: 28px; height: 32px; align-items: center; transform: translateY(-50%); color: #8a8e97; cursor: pointer; }
.auth-feedback { display: block; min-height: 14px; margin: 4px 0 -6px; font-size: 10px; line-height: 1.3; }
.password-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin-top: -6px; color: #8a8098; font-size: 10px; }
.password-rule { display: flex; align-items: center; gap: 7px; }
.password-rule::before { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #d8d0e2; content: ''; }
.password-rule.is-valid { color: #157347; }
.password-rule.is-valid::before { background: #157347; }
.password-rule.is-invalid { color: #b42318; }
.auth-options { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; margin-top: -2px; }
.auth-options a { color: #343840; font-size: 13px; font-weight: 600; text-decoration: underline; }
.auth-terms { color: #777b84; font-size: 10px; line-height: 1.45; }
.auth-terms a { color: #343840; font-weight: 650; text-decoration: underline; }
.auth-submit { grid-column: 1 / -1; display: inline-flex; width: 100%; min-width: 154px; min-height: 50px; align-items: center; justify-content: center; gap: 14px; padding: 0 18px 0 24px; border: 0; border-radius: 25px; background: #b9f266; color: #171923; font-size: 15px; font-weight: 700; cursor: pointer; }
.auth-form--single .auth-submit { margin-top: 13px; }
.auth-submit::after { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #171923; color: #fff; font-size: 16px; content: '\2192'; }
.auth-submit:hover { background: #a9e955; }
.auth-submit:disabled { cursor: not-allowed; opacity: .58; }
.auth-form-message { padding: 11px 13px; border-radius: 8px; background: #f5f6f8; color: #5d626c; font-size: 12px; line-height: 1.4; }
.auth-form-message--error { background: #fff0ef; color: #a43027; }
.auth-form-message--success { background: #edf8f1; color: #157347; }
.auth-form-footer { margin: 24px 0 0; color: #858992; font-size: 13px; text-align: center; }
.auth-form-footer a { color: #282c34; font-weight: 650; text-decoration: underline; }

body.auth-page-body.onboarding-page-body { min-height: 100dvh; overflow-x: hidden; overflow-y: auto; background: #f7f7f8; }
.account-setup { display: flex; min-height: 100dvh; flex-direction: column; align-items: center; padding: 32px 24px 48px; background: #f7f7f8; }
.account-setup-header { display: grid; grid-template-columns: 120px minmax(180px, 420px) 120px; width: min(100%, 820px); align-items: center; gap: 22px; margin-bottom: 34px; }
.account-setup-header img { width: auto; height: 25px; }
.account-setup-header small { color: #777b84; font-size: 12px; font-weight: 700; text-align: right; }
.account-setup-progress { display: grid; grid-template-columns: repeat(var(--setup-step-count, 5), 1fr); gap: 7px; }
.account-setup-progress span { height: 4px; border-radius: 2px; background: #dedfe3; transition: background 180ms ease; }
.account-setup-progress span.active { background: #7652a3; }
.account-setup-card { width: min(100%, 620px); min-height: 500px; padding: clamp(30px, 5vw, 54px); border: 1px solid #ececef; border-radius: 18px; background: #fff; box-shadow: 0 18px 55px rgba(25, 27, 35, .07); }
.account-setup-step h1 { margin: 0; color: #171923; font-size: clamp(31px, 4vw, 43px); line-height: 1.12; font-weight: 700; letter-spacing: 0; }
.account-setup-step > p { margin: 14px 0 28px; color: #777b84; font-size: 14px; line-height: 1.6; }
.account-setup-step[hidden] { display: none !important; }
.account-setup-card .auth-form { gap: 16px; }
.account-setup-card .password-rules { margin: 0 0 4px; font-size: 11px; }
.account-setup-card select.form-control { appearance: auto; }
.social-account-list { grid-column: 1 / -1; display: grid; gap: 12px; }
.social-account-row { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; padding: 14px; border: 1px solid #e5e6ea; border-radius: 12px; background: #fafafa; }
.social-account-row .auth-field { display: grid; grid-template-rows: auto 48px; gap: 7px; align-content: start; }
.social-account-row .auth-field > label { margin: 0; line-height: 20px; }
.social-account-row:has([data-social-trigger][aria-expanded="true"]) { z-index: 35; }
.social-account-row .social-platform-picker { padding: 0; border: 0; background: transparent; }
.social-account-row .social-platform-trigger { font-size: 14px; }
.social-account-row .social-platform-trigger:focus-visible { outline: 2px solid #7351a2; outline-offset: 2px; }
.social-account-row .social-platform-options { max-height: none; margin: 0; padding: 10px; overflow: visible; border-color: #ececf0; box-shadow: 0 16px 40px rgba(20, 22, 32, .12); }
.social-account-row .social-platform-options input { min-height: 42px; margin-bottom: 8px; font-size: 14px; background: #f8f9fb; }
.social-account-row .social-platform-options-list { max-height: min(260px, 40dvh); scrollbar-width: thin; }
.social-account-row .social-platform-options-list button { min-height: 42px; padding: 10px; font-size: 14px; }
.social-platform-picker { position: relative; }
.social-platform-picker > select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.social-platform-trigger { display: flex; width: 100%; height: 48px; align-items: center; gap: 12px; padding: 8px 13px; border: 1px solid #dfe1e6; border-radius: 9px; background: #fff; color: #242630; text-align: left; cursor: pointer; }
.social-platform-trigger img, .social-platform-options-list img { width: 22px; height: 22px; flex: none; object-fit: contain; }
.social-platform-trigger span { flex: 1; }
.social-platform-trigger i { color: #8a8d95; font-size: 11px; }
.social-platform-options { position: absolute; top: calc(100% + 5px); right: 0; left: 0; z-index: 30; padding: 7px; border: 1px solid #e5e6eb; border-radius: 11px; background: #fff; box-shadow: 0 14px 32px rgba(20, 22, 32, .15); }
.social-platform-options[hidden] { display: none; }
.social-platform-options input { width: 100%; min-height: 37px; margin-bottom: 5px; padding: 0 10px; border: 1px solid #e5e6eb; border-radius: 7px; outline-color: #6c43b0; }
.social-platform-options-list { max-height: 200px; overflow-y: auto; }
.social-platform-options-list button { display: flex; width: 100%; align-items: center; gap: 11px; padding: 8px; border: 0; border-radius: 7px; background: transparent; color: #272a32; text-align: left; cursor: pointer; }
.social-platform-options-list button:hover, .social-platform-options-list button[aria-selected="true"] { background: #f3f1f8; }
.social-platform-options-list button[hidden] { display: none; }
.social-account-remove { position: absolute; top: -8px; right: -8px; display: flex; width: 25px; height: 25px; align-items: center; justify-content: center; padding: 0; border: 1px solid #e0e1e5; border-radius: 50%; background: #fff; color: #5f646d; cursor: pointer; }
.social-account-remove i { display: block; width: 100%; font-size: 11px; line-height: 1; text-align: center; }
.social-account-add { grid-column: 1 / -1; display: inline-flex; width: fit-content; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; color: #604286; font-size: 12px; font-weight: 700; cursor: pointer; }
.social-account-add > span { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid #d8cfE4; border-radius: 50%; background: #f4f1f8; font-size: 12px; }
.social-account-limit { grid-column: 1 / -1; margin: -8px 0 0; color: #92959d; font-size: 10px; }
.account-photo-picker { display: grid; justify-items: center; gap: 13px; }
.account-photo-preview { width: min(100%, 230px); aspect-ratio: 1; overflow: hidden; border-radius: 18px; background: #f0f1f2; }
.account-photo-preview > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.account-photo-select { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid #dedfe3; border-radius: 22px; background: #fff; color: #2d3139; font-size: 13px; font-weight: 700; cursor: pointer; }
.account-photo-select:hover { border-color: #bbbfc7; background: #fafafa; }
.account-photo-picker small { color: #858993; font-size: 11px; text-align: center; }
.location-combobox { position: relative; }
.location-suggestions { position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 20; max-height: 220px; padding: 6px; overflow-y: auto; border: 1px solid #e1e2e6; border-radius: 11px; background: #fff; box-shadow: 0 14px 34px rgba(23, 25, 35, .13); }
.location-suggestions[hidden] { display: none; }
.location-suggestions button { display: block; width: 100%; padding: 10px 11px; border: 0; border-radius: 7px; background: transparent; color: #2c3038; font-size: 12px; line-height: 1.35; text-align: left; cursor: pointer; }
.location-suggestions button:hover,
.location-suggestions button:focus { background: #f3f1f7; color: #56387e; outline: 0; }
.location-attribution { display: inline-block; margin-top: 5px; color: #92959d; font-size: 9px; text-decoration: underline; }
.account-setup-textarea { height: 92px !important; padding-top: 13px !important; resize: vertical; }
.account-setup-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 8px; }
.account-setup-skip { padding: 10px 0; border: 0; background: transparent; color: #737780; font-size: 13px; font-weight: 650; text-decoration: underline; cursor: pointer; }
.account-setup-complete { padding-top: 36px; text-align: center; }
.account-setup-check { display: grid; width: 62px; height: 62px; place-items: center; margin: 0 auto 24px; border-radius: 50%; background: #b9f266; color: #171923; font-size: 28px; font-weight: 800; }
.account-setup-complete .auth-submit { margin: 28px auto 0; }
.auth-signup-page .auth-form-side { padding-top: 20px; padding-bottom: 20px; }
.auth-signup-page .auth-form-container { width: min(100%, 540px); }
.auth-signup-page .auth-form-container h1 { font-size: 40px; }
.auth-signup-page .auth-intro { margin: 9px 0 12px; font-size: 14px; line-height: 1.4; }
.auth-signup-page .auth-switch { margin-bottom: 12px; }
.auth-signup-page .auth-switch a { min-height: 36px; }
.auth-signup-page .auth-form { gap: 6px 12px; }
.auth-signup-page .auth-form.auth-form--single { row-gap: 12px; }
.auth-signup-page .auth-field label { margin-bottom: 4px; font-size: 12px; }
.auth-signup-page .auth-form .form-control { height: 40px !important; }
.auth-signup-page .auth-feedback { min-height: 10px; margin-top: 2px; }
.auth-signup-page .password-rules { margin-top: -3px; }
.auth-signup-page .auth-submit { min-height: 46px; }
.auth-signup-page .auth-form-footer { margin-top: 10px; }

@media (max-width: 900px) {
  .auth-split-page { display: block; height: 100dvh; min-height: 0; }
  .auth-showcase { display: none; }
  .auth-form-side { position: relative; min-height: 100dvh; padding: 24px; }
  .auth-form-container { width: min(100%, 520px); height: auto; }
  .auth-signup-page .auth-form-side { padding: 78px 24px 24px; }
  .auth-mobile-logo { position: absolute; top: 28px; left: 50%; display: inline-flex; transform: translateX(-50%); }
  .auth-mobile-logo img { display: block; width: auto; height: 24px; }
  .auth-corner-logo { display: none; }
}

@media (max-width: 520px) {
  .auth-form-side { align-items: flex-start; padding: 28px 20px; }
  .auth-form .form-control,
  .social-platform-options input { font-size: 16px !important; }
  .auth-form-container h1 { font-size: 34px; }
  .auth-copy-block { min-height: 136px; }
  .auth-intro { margin: 12px 0 20px; font-size: 14px; }
  .auth-switch { width: 100%; margin-bottom: 22px; }
  .auth-switch button { min-height: 40px; font-size: 13px; }
  .auth-form { gap: 12px 10px; }
  .auth-form .form-control { height: 44px !important; }
  .auth-signup-page .auth-form-side { padding-top: 76px; padding-bottom: 18px; }
  .auth-signup-page .auth-form-container h1 { font-size: 29px; }
  .auth-signup-page .auth-kicker { display: none; }
  .auth-signup-page .auth-intro { display: block; margin: 8px 0 16px; }
  .auth-signup-page .auth-switch { margin-bottom: 16px; }
  .auth-signup-page .auth-google-link { min-height: 34px; margin-bottom: 9px; }
  .auth-signup-page .auth-form { gap: 8px 10px; }
  .auth-signup-page .auth-form.auth-form--single { row-gap: 12px; }
  .auth-signup-page .auth-form .form-control { height: 40px !important; }
  .auth-field label { margin-bottom: 5px; font-size: 11px; }
  .password-rules { gap: 3px 8px; font-size: 9px; }
  .auth-submit { width: 100%; }
  .auth-code-grid { gap: 6px; }
  .auth-code-box { border-radius: 8px; font-size: 23px; }
  .auth-signup-page .auth-form-footer { margin-top: 12px; }
  .account-setup { padding: 22px 16px 32px; }
  .account-setup-header { grid-template-columns: 1fr auto; gap: 14px; margin-bottom: 22px; }
  .account-setup-header img { height: 22px; }
  .account-setup-progress { grid-column: 1 / -1; grid-row: 2; }
  .account-setup-header small { grid-column: 2; grid-row: 1; }
  .account-setup-card { min-height: 0; padding: 28px 20px; border-radius: 14px; }
  .account-setup-step h1 { font-size: 30px; }
  .account-setup-card .auth-form { grid-template-columns: minmax(0, 1fr); }
  .account-setup-card .auth-field,
  .account-setup-actions { grid-column: 1; }
  .social-account-row { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 380px) {
  .auth-form { grid-template-columns: minmax(0, 1fr); }
  .auth-field--full,
  .auth-form-message,
  .auth-form-actions,
  .password-rules,
  .auth-terms,
  .auth-options,
  .auth-submit { grid-column: 1; }
}

.auth-page-body .auth-form.auth-form--single {
  gap: 4px;
}

.setup-username-feedback { display: block; min-height: 22px; font-size: 13px; line-height: 1.5; }
.setup-username-feedback[data-state="error"] { color: #b03b48; }
.setup-username-feedback[data-state="available"] { color: #277747; }
.account-setup .setup-username-preview { margin: 12px 0 20px; color: #707681; font-size: 14px; overflow-wrap: anywhere; }
