.auth-dialog {
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 32px 100px #0008, 0 0 80px #d6a53312;
}
.auth-dialog::backdrop { background: #000b; backdrop-filter: blur(8px); }
.auth-dialog:not([open]), .auth-dialog [hidden] { display: none !important; }
.auth-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.auth-icon { display: block; flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; padding: 22px 32px; border-bottom: 1px solid var(--line); background: var(--surface); }
.auth-header h2 { font: italic 800 25px/1.1 'Barlow Condensed', Impact, sans-serif; }
.auth-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: var(--surface-soft); color: var(--muted); font: 300 30px/1 Inter, sans-serif; }
.auth-close:hover { color: var(--text); }
.auth-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-intro { display: flex; flex-direction: column; min-height: 640px; padding: 44px; border-right: 1px solid var(--line); background: linear-gradient(var(--page-overlay), var(--page-overlay)), url('coins-shop-background.jpg') center / cover, var(--bg); }
.auth-brand { gap: 12px; }
.auth-brand .brand-logo-frame { width: 40px; }
.auth-brand .brand-name { font-size: 25px; }
.auth-intro h3 { margin: 34px 0 18px; font: italic 800 40px/.99 'Barlow Condensed', Impact, sans-serif; letter-spacing: -.5px; }
.auth-intro h3 > span { color: var(--accent); }
.auth-intro > p { max-width: 330px; color: var(--text-soft); font-size: 14px; line-height: 1.9; }
.auth-benefits { display: grid; gap: 14px; margin-top: auto; padding-top: 48px; }
.auth-benefits > div { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text-soft); font-size: 10px; font-weight: 600; letter-spacing: .8px; }
.auth-benefits .auth-icon { width: 16px; height: 16px; color: var(--accent); }
.auth-content { min-width: 0; padding: 44px; }
.auth-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.auth-tab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 10px; font-style: italic; font-weight: 800; letter-spacing: .5px; line-height: 1.5; }
.auth-tab .auth-icon { width: 16px; height: 16px; }
.auth-tab[aria-selected='true'] { background: var(--button-gold); color: var(--accent-ink); box-shadow: 0 4px 18px #c894242b; }
.auth-availability { margin: 12px 0 26px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.auth-field { margin-bottom: 22px; }
.auth-field > label { display: block; margin-bottom: 7px; padding-left: 3px; color: var(--text-soft); font-size: 10px; font-weight: 700; letter-spacing: 1.1px; }
.auth-input-shell { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--bg); }
.auth-input-shell > .auth-icon { color: var(--muted); }
.auth-input-shell:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.auth-input-shell input { width: 100%; min-width: 0; min-height: 54px; padding: 12px 0; border: 0; outline: none; background: transparent; color: var(--text); font-size: 16px; font-weight: 600; }
.auth-input-shell input::placeholder { color: var(--muted); opacity: 1; font-size: 13px; font-weight: 500; }
.auth-field > small { display: block; margin: 6px 3px 0; color: var(--muted); font-size: 11px; }
.auth-password-toggle { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.auth-password-toggle:hover { color: var(--accent); }
.auth-password-toggle[aria-pressed='false'] .auth-eye-slash { display: none; }
.auth-forgot { display: block; min-height: 36px; margin: -8px 0 16px auto; padding: 4px 0; border: 0; background: transparent; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .8px; text-align: right; }
.auth-forgot:hover { color: var(--accent); }
.auth-submit { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 58px; padding: 12px 16px; border: 0; border-radius: 15px; background: var(--button-gold); color: var(--accent-ink); font-size: 12px; font-style: italic; font-weight: 800; letter-spacing: 1.5px; }
.auth-submit:hover { filter: brightness(1.04); }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 30px 0; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.auth-divider::before, .auth-divider::after { flex: 1; height: 1px; background: var(--line); content: ''; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 54px; padding: 12px 18px; border: 1px solid #d9d9d9; border-radius: 14px; background: #ffffff; color: #151515; font-size: 11px; font-style: italic; font-weight: 800; letter-spacing: .7px; }
.auth-google:hover { border-color: var(--accent); background: #f7f7f7; }
.auth-google svg { flex-shrink: 0; }
.auth-panel-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; margin-top: 26px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .6px; }
.auth-panel-switch button { min-height: 36px; padding: 4px 0; border: 0; background: transparent; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0; text-decoration: underline; text-underline-offset: 3px; }
.auth-profile-preview { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); background: var(--accent-wash); font-size: 11px; font-weight: 700; letter-spacing: 0; }
.auth-profile-preview:hover { border-color: var(--accent); }
.auth-status { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--accent-wash); color: var(--text-soft); font-size: 12px; line-height: 1.8; }
.auth-layout[hidden], .auth-account[hidden], .auth-panel[hidden] { display: none; }
.auth-availability a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth-dialog button:disabled { opacity: .55; cursor: wait; }
.auth-account { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 42px 24px; text-align: center; }
.auth-account-avatar { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--accent); border-radius: 50%; background: var(--accent-wash); color: var(--accent); font-size: 23px; font-weight: 800; }
.auth-account h3 { font-size: 24px; overflow-wrap: anywhere; }
.auth-account > p { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.auth-account .yellow-btn, .auth-account .outline-btn { width: min(100%, 320px); min-height: 48px; }
.auth-account .auth-status { max-width: 520px; color: var(--text-soft); }
.auth-back { min-height: 44px; margin: -10px 0 14px; padding: 4px 0; border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 600; }
.auth-panel > h3 { margin-bottom: 10px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.auth-panel > p { margin-bottom: 28px; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .auth-intro, .auth-content { padding: 32px; }
  .auth-intro h3 { font-size: 36px; }
  .auth-tab { gap: 6px; padding-right: 6px; padding-left: 6px; font-size: 9px; }
}
@media (max-width: 700px) {
  .auth-dialog { width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 24px; }
  .auth-header { min-height: 78px; padding: 16px 24px; }
  .auth-header h2 { font-size: 23px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-intro { display: none; }
  .auth-content { padding: 26px 24px 30px; }
  .auth-tab { font-size: 10px; }
  .auth-availability { margin-bottom: 24px; }
}
@media (max-width: 380px) {
  .auth-header { padding-right: 18px; padding-left: 18px; gap: 12px; }
  .auth-header h2 { font-size: 21px; }
  .auth-content { padding-right: 18px; padding-left: 18px; }
  .auth-tab { gap: 5px; font-size: 9px; letter-spacing: 0; }
  .auth-tab .auth-icon { width: 14px; height: 14px; }
  .auth-input-shell { gap: 10px; padding-left: 12px; }
  .auth-input-shell input::placeholder { font-size: 12px; }
}

.auth-account-avatar { position: relative; width: 88px; height: 88px; overflow: hidden; background: #000; }
.auth-account-avatar img { position: absolute; display: block; width: 128px; height: 128px; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -38%); object-fit: contain; image-rendering: auto; }



