/* Member access uses the same bundled Poppins and dark palette as the app. */
#authPage[hidden], #appShell[hidden], #mobileNavigation[hidden], .auth-page [hidden] { display: none !important; }
.auth-page { min-height: 100svh; display: grid; place-items: center; padding: 2.5rem 1.25rem; background: radial-gradient(ellipse at 50% 0%, #8ee3b50a, transparent 55%), var(--bg); }
.auth-wrap { width: min(100%, 29.5rem); }
.auth-brand { display: flex; align-items: center; justify-content: center; width: fit-content; margin: 0 auto 1.75rem; gap: .65rem; font-size: 1.875rem; font-weight: 600; letter-spacing: -.06rem; }
.auth-brand img { width: 3rem; height: 3rem; object-fit: contain; }
.auth-card { padding: 1.75rem; border: 1px solid #313744; border-radius: 1.5rem; background: #191d26; box-shadow: 0 20px 64px #0003; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .375rem; padding: .375rem; border: 1px solid #2b313e; border-radius: .875rem; background: #11151d; }
.auth-tab { min-height: 2.75rem; padding: .6rem; border: 0; border-radius: .6rem; background: transparent; color: #aeb6c6; font-size: .9375rem; font-weight: 500; transition: background .15s, color .15s; }
.auth-tab:hover { color: var(--text); background: #242b37; }
.auth-tab[aria-selected="true"] { color: #13291e; background: var(--mint); box-shadow: 0 2px 6px #0002; }
.auth-heading { padding: 1.75rem 0 1.5rem; }
.auth-eyebrow { display: block; margin-bottom: .625rem; color: #a4b7ae; font-size: .625rem; font-weight: 500; letter-spacing: .09em; }
.auth-heading h1 { font-size: 1.875rem; letter-spacing: -.065rem; line-height: 1.3; }
.auth-heading p { margin-top: .625rem; color: var(--muted); font-size: .875rem; line-height: 1.75; }
.auth-form { display: grid; gap: 1.125rem; }
.auth-contact-method { min-width: 0; margin: 0; padding: 0; border: 0; }
.auth-contact-method legend { padding: 0; margin-bottom: .5rem; color: #e2e7f0; font-size: .8125rem; font-weight: 500; }
.contact-method-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
.contact-method-option { position: relative; min-width: 0; cursor: pointer; }
.contact-method-option > span { display: flex; align-items: center; justify-content: center; gap: .5rem; height: 100%; min-height: 2.75rem; padding: .625rem .5rem; border: 1px solid #364051; border-radius: .625rem; background: #121720; color: #acb6c8; font-size: .8125rem; font-weight: 500; text-align: center; transition: color .15s, border-color .15s, background .15s; }
.contact-method-option > span::before { content: ''; flex: none; width: .875rem; height: .875rem; border: 1px solid #748197; border-radius: 50%; }
.contact-method-option:hover > span { border-color: #71847c; color: var(--text); }
.contact-method-option input:checked + span { color: #b4efcc; border-color: #719b83; background: #24382f; }
.contact-method-option input:checked + span::before { border: 4px solid var(--mint); background: #24382f; }
.contact-method-option input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 3px; }
.auth-field { min-width: 0; }
.auth-field label, .auth-label { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; color: #e2e7f0; font-size: .8125rem; font-weight: 500; }
.auth-optional { color: #9ca6b8; font-size: .6875rem; font-weight: 400; }
.auth-input-wrap { display: flex; align-items: center; gap: .75rem; min-width: 0; min-height: 3.25rem; padding: 0 .875rem; background: #121720; border: 1px solid #364051; border-radius: .75rem; transition: border-color .15s, box-shadow .15s; }
.auth-input-wrap > .icon { flex: none; color: #9eaabe; width: 1.125rem; height: 1.125rem; }
.auth-input-wrap:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px #8ee3b514; }
.auth-input-wrap:has([aria-invalid="true"]) { border-color: #e69c9c; }
.auth-input-wrap input { width: 100%; min-width: 0; padding: .8rem 0; border: 0; outline: none; background: transparent; font-size: .875rem; line-height: 1.5; }
.auth-input-wrap input::placeholder { color: #919bad; opacity: 1; }
.auth-input-wrap input:autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 1000px #121720 inset; caret-color: var(--text); }
.auth-password-toggle { flex: none; display: grid; place-items: center; width: 2.75rem; min-height: 2.75rem; margin-right: -.625rem; border: 0; border-radius: .5rem; color: #aab5c7; background: transparent; }
.auth-password-toggle:hover { background: #28313e; color: var(--mint); }
.auth-password-toggle svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.auth-password-toggle .password-slash { display: none; }
.auth-password-toggle[aria-pressed="true"] .password-slash { display: block; }
.auth-remember{display:grid;grid-template-columns:1.15rem 1fr;column-gap:.65rem;align-items:center;margin-top:-.25rem;color:#d8dfeb;font-size:.78rem;cursor:pointer}.auth-remember input{width:1.05rem;height:1.05rem;margin:0;accent-color:var(--mint)}.auth-remember small{grid-column:2;color:#8f9bae;font-size:.65rem;line-height:1.45}
.auth-submit { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 3.25rem; margin-top: .25rem; padding: .875rem 1.25rem; border: 1px solid transparent; border-radius: .75rem; background: var(--mint); color: #132c20; font-size: .9375rem; font-weight: 600; transition: background .15s, box-shadow .15s; }
.auth-submit:hover { background: #a3edc4; box-shadow: 0 4px 18px #8ee3b515; }
.auth-submit:active { background: var(--mint-deep); }
.auth-submit .icon { width: 1.125rem; height: 1.125rem; }
.auth-switch { margin-top: 1rem; color: var(--muted); text-align: center; font-size: .8125rem; }
.auth-switch button { min-height: 2.75rem; padding: .25rem .125rem; border: 0; border-radius: .25rem; color: var(--mint); background: transparent; font-weight: 500; }
.auth-switch button:hover { text-decoration: underline; text-underline-offset: .25rem; }
.auth-demo-note { margin-top: .875rem; padding-top: 1rem; border-top: 1px solid #2d3441; color: #9da8ba; text-align: center; font-size: .6875rem; line-height: 1.75; }
.auth-footer { margin-top: 1.5rem; color: #9da7b8; text-align: center; font-size: .75rem; }
.auth-error { margin-top: .4rem; color: #f1aaaa; font-size: .75rem; line-height: 1.6; }
.auth-vpn-notice { margin: .25rem 0 1rem; padding: .7rem .85rem; border: 1px solid #a35b64; border-radius: .75rem; background: #3a2028; color: #ffc4ca; font-size: .78rem; line-height: 1.5; }
.auth-vpn-notice[hidden] { display: none; }
.country-field { position: relative; }
.country-trigger { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3.25rem; padding: .875rem; border: 1px solid #364051; border-radius: .75rem; background: #121720; text-align: left; font-size: .875rem; }
.country-trigger:hover, .country-trigger[aria-expanded="true"] { border-color: #7aaf91; }
.country-trigger[aria-invalid="true"] { border-color: #e69c9c; }
.country-trigger > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.country-placeholder { color: #919bad; }
.country-trigger svg, .country-search-wrap svg { flex: none; width: 1.125rem; height: 1.125rem; fill: none; stroke: #9eaabe; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.country-chevron { transition: transform .15s; }
.country-trigger[aria-expanded="true"] .country-chevron { transform: rotate(180deg); }
.country-picker { position: absolute; bottom: calc(100% - 1.375rem); left: 0; right: 0; z-index: 5; padding: .625rem; border: 1px solid #465666; border-radius: 1rem; background: #202631; box-shadow: 0 12px 48px #0009; }
.country-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-left: .5rem; }
.country-picker-heading strong { font-size: .8125rem; font-weight: 500; }
.country-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: .5rem; color: var(--muted); background: transparent; }
.country-close:hover { color: var(--text); background: #323c4b; }
.country-close .icon { width: 1.125rem; height: 1.125rem; }
.country-search-wrap { display: flex; align-items: center; gap: .625rem; padding: 0 .75rem; border: 1px solid #516756; border-radius: .625rem; background: #121720; }
.country-search-wrap:focus-within { border-color: var(--mint); box-shadow: 0 0 0 2px #8ee3b514; }
.country-search-wrap input { width: 100%; min-width: 0; padding: .75rem 0; outline: none; border: 0; background: transparent; font-size: .875rem; }
.country-search-wrap input::placeholder { color: #a1acbd; }
.country-options { display: grid; gap: .125rem; max-height: min(14rem, 32dvh); margin-top: .5rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #52645b transparent; }
.country-option { display: flex; align-items: center; gap: .625rem; min-height: 2.75rem; padding: .625rem .75rem; border-radius: .5rem; cursor: pointer; font-size: .8125rem; line-height: 1.5; }
.country-option > span:first-child { flex: 1; overflow-wrap: anywhere; }
.country-option:hover, .country-option.is-highlighted { background: #323f40; }
.country-option[aria-selected="true"] { color: #aff0ca; background: #2b4036; }
.country-option-code { flex: none; color: #afbacb; font-size: .6875rem; letter-spacing: .03em; }
.country-option[aria-selected="true"] .country-option-code { color: var(--mint); }
.country-count { margin: .5rem .5rem .125rem; padding-top: .5rem; border-top: 1px solid #394454; color: #a9b4c5; font-size: .625rem; }
.country-empty { padding: 1.25rem .75rem; color: var(--muted); font-size: .8125rem; text-align: center; }
body.auth-mode .toast { bottom: 1.25rem; }
.has-phone-country > .contact-user-icon { display: none; }
.phone-country-trigger { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.75rem; flex: none; margin-left: -.4rem; padding: .375rem .625rem .375rem .25rem; border: 0; border-right: 1px solid #384451; border-radius: 0; background: transparent; color: #e5edf6; font-size: .875rem; font-variant-numeric: tabular-nums; }
.phone-country-trigger:hover,.phone-country-trigger:focus-visible,.phone-country-trigger[aria-expanded="true"] { color: var(--mint); background:#202a35; }
.phone-country-trigger>span:last-child{display:grid;place-items:center;width:1.4rem;height:1.4rem;border-radius:.4rem;background:#2b3543;transition:transform .16s,background .16s}.phone-country-trigger[aria-expanded="true"]>span:last-child{transform:rotate(180deg);background:#355446}
.phone-country-trigger>span:last-child{display:none}
.phone-country-abbr { color: #b5c2d2; font-size: .625rem; font-weight: 500; }
.phone-help { margin-top: .45rem; color: #aab8c8; font-size: .6875rem; line-height: 1.7; overflow-wrap: anywhere; }
body.has-phone-code-dialog { overflow: hidden; }
.phone-code-dialog { width: min(27rem, calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); padding: 1.25rem; border: 1px solid #465565; border-radius: 1.25rem; color: var(--text); background: #1b222d; box-shadow: 0 24px 80px #0008; overflow-y: auto; overscroll-behavior: contain; }
.phone-code-dialog::backdrop { background: #060b14b5; backdrop-filter: blur(5px); }
.phone-code-dialog [hidden] { display: none !important; }
.phone-code-heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.phone-code-heading h2 { font-size: 1.0625rem; }
.phone-code-heading p { margin-top: .25rem; font-size: .75rem; color: var(--muted); }
.phone-code-options { max-height: min(21rem, 46dvh); margin-top: .75rem; }
.phone-option-code { flex: none; min-width: 2.75rem; color: var(--mint); font-variant-numeric: tabular-nums; text-align: right; }
.phone-code-dialog .country-search-wrap input { font-size: 1rem; }
@media (max-width: 520px) { .phone-code-dialog { inset: auto 0 max(1rem, env(safe-area-inset-bottom)) 0; margin: 0 auto; } .phone-country-trigger { gap: .3rem; padding-right: .5rem; font-size: .8125rem; } }
@media (max-width: 520px) {
  .auth-page { padding: 1.75rem 1rem max(1.5rem, env(safe-area-inset-bottom)); }
  .auth-brand { margin-bottom: 1.25rem; font-size: 1.75rem; }
  .auth-brand img { width: 2.75rem; height: 2.75rem; }
  .auth-card { padding: 1.25rem; border-radius: 1.25rem; }
  .auth-heading { padding: 1.5rem 0 1.25rem; }
  .auth-heading h1 { font-size: 1.75rem; }
  .auth-input-wrap input, .country-search-wrap input { font-size: 1rem; }
  .auth-input-wrap { gap: .5rem; padding-inline: .75rem; }
  .auth-input-wrap input::placeholder { font-size: .8125rem; }
  .auth-demo-note { font-size: .625rem; }
}
@media (max-height: 760px) and (min-width: 521px) { .auth-page { padding-block: 1.5rem; } .auth-brand { margin-bottom: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { .auth-page *, .auth-page *::before, .auth-page *::after { transition: none !important; } }
