/* ================================================================
   auth.css — login, signup, callback
   ================================================================
   Phone-first. Local background image (self-hosted, satisfies
   CSP img-src 'self'). Balanced to ~15% visible.

   Load order on auth pages:
     base.css → components.css → auth.css

   Rules locked:
     - No borders on surfaces
     - 1px focus outline on inputs
     - Colored text limited to profit/loss (unused here — no trading UI)
     - Inter + Manrope, no mono, no cursive
     - Muted blue #4a7edb
   ================================================================ */

:root {
  --auth-overlay: linear-gradient(180deg, rgba(245, 247, 250, 0.92) 0%, rgba(232, 236, 242, 0.90) 100%);
  --auth-card-bg: rgba(255, 255, 255, 0.94);
  --auth-card-bg-fallback: #ffffff;
  --auth-modal-bg: rgba(255, 255, 255, 0.98);
  --auth-modal-bg-fallback: #ffffff;
}

[data-theme='dark'] {
  --auth-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.90) 100%);
  --auth-card-bg: rgba(10, 11, 13, 0.90);
  --auth-card-bg-fallback: #0a0b0d;
  --auth-modal-bg: rgba(10, 11, 13, 0.98);
  --auth-modal-bg-fallback: #0a0b0d;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg-base);
  overflow-x: hidden;
}

/* ----------------------------------------------------------------
   Background layer — local image, balanced opacity
   ---------------------------------------------------------------- */

.auth-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-3);
  isolation: isolate;
}

.auth-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: #0e1220;
  background-image: url('/assets/images/login_bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.4);
}

.auth-shell::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--auth-overlay);
}

/* ----------------------------------------------------------------
   Split layout
   ---------------------------------------------------------------- */

.auth-split {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: stretch;
}

@media (min-width: 900px) {
  .auth-shell {
    padding: var(--space-6);
  }
  .auth-split {
    max-width: 1080px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
  }
}

/* ----------------------------------------------------------------
   Brand panel
   ---------------------------------------------------------------- */

.auth-brand-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  order: 1;
}

@media (min-width: 900px) {
  .auth-brand-panel {
    align-items: flex-start;
    text-align: left;
    order: 2;
    flex: 1 1 0;
    max-width: 460px;
    gap: var(--space-3);
  }
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text-primary);
}

.auth-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--accent-fg);
}

.auth-brand-logo svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 900px) {
  .auth-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
  }
  .auth-brand-logo svg {
    width: 24px;
    height: 24px;
  }
}

.auth-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.03em;
}

@media (min-width: 900px) {
  .auth-brand-name {
    font-size: var(--text-2xl);
  }
}

.auth-brand-tagline {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 320px;
  margin: 0;
}

@media (min-width: 900px) {
  .auth-brand-tagline {
    font-size: var(--text-md);
    max-width: 100%;
  }
}

.auth-brand-points {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .auth-brand-points {
    display: flex;
    margin-top: var(--space-4);
  }
}

.auth-brand-points li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.auth-brand-points svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   Form panel + card
   ---------------------------------------------------------------- */

.auth-form-panel {
  width: 100%;
  order: 2;
}

@media (min-width: 900px) {
  .auth-form-panel {
    order: 1;
    flex: 0 0 400px;
    max-width: 400px;
  }
}

.auth-card {
  width: 100%;
  background: var(--auth-card-bg-fallback);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-float);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .auth-card {
    background: var(--auth-card-bg);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
  }
}

@media (min-width: 768px) {
  .auth-card {
    border-radius: var(--radius-2xl);
    padding: var(--space-5);
    gap: var(--space-4);
  }
}

.auth-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.auth-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  margin: 0;
}

@media (min-width: 768px) {
  .auth-title {
    font-size: var(--text-2xl);
  }
}

.auth-subtitle {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-base);
  margin: 2px 0 0;
}

@media (min-width: 768px) {
  .auth-subtitle {
    font-size: var(--text-sm);
  }
}

/* ----------------------------------------------------------------
   Theme toggle
   ---------------------------------------------------------------- */

.auth-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}

.auth-theme-toggle:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.auth-theme-toggle svg {
  width: 16px;
  height: 16px;
}

/* ----------------------------------------------------------------
   Error banner
   ---------------------------------------------------------------- */

.auth-error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--loss-subtle);
  border-radius: var(--radius-sm);
  color: var(--loss);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.auth-error[hidden] {
  display: none;
}

/* ----------------------------------------------------------------
   Floating label inputs
   ---------------------------------------------------------------- */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.auth-float-group {
  position: relative;
  padding-bottom: 1px;
}

.auth-float-group::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  pointer-events: none;
  transition:
    width var(--duration-base) var(--ease),
    left var(--duration-base) var(--ease);
}

.auth-float-group:focus-within::after {
  left: 0;
  width: 100%;
}

.auth-float-group input {
  width: 100%;
  height: 48px;
  padding: 18px 40px 4px 38px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--divider-strong);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration-base) var(--ease);
  caret-color: var(--accent);
}

.auth-float-group input:hover {
  border-bottom-color: var(--text-muted);
}

.auth-float-group input:focus {
  border-bottom-color: transparent;
}

.auth-float-group input:-webkit-autofill,
.auth-float-group input:-webkit-autofill:hover,
.auth-float-group input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 5000s ease-in-out 0s;
  font-weight: var(--weight-medium);
}

.auth-float-group label {
  position: absolute;
  left: 38px;
  top: 24px;
  transform: translateY(-50%);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  pointer-events: none;
  transition:
    top var(--duration-base) var(--ease),
    font-size var(--duration-base) var(--ease),
    color var(--duration-base) var(--ease),
    letter-spacing var(--duration-base) var(--ease);
  max-width: calc(100% - 80px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

.auth-float-group input:focus ~ label,
.auth-float-group input:not(:placeholder-shown) ~ label {
  top: 10px;
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.auth-float-icon {
  position: absolute;
  left: 12px;
  top: 24px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--duration-base) var(--ease);
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-float-icon svg {
  width: 16px;
  height: 16px;
}

.auth-float-group input:focus ~ .auth-float-icon {
  color: var(--accent);
}

.auth-pwd-toggle {
  position: absolute;
  right: 6px;
  top: 24px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease),
    background-color var(--duration-fast) var(--ease);
}

.auth-pwd-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.auth-pwd-toggle svg {
  width: 14px;
  height: 14px;
}

/* ----------------------------------------------------------------
   Form row — remember me + forgot password
   ---------------------------------------------------------------- */

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  user-select: none;
}

.auth-check:hover {
  color: var(--text-primary);
}

.auth-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.auth-check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  transition: background-color var(--duration-fast) var(--ease);
}

.auth-check-box svg {
  width: 10px;
  height: 10px;
  color: var(--accent-fg);
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.auth-check input:checked ~ .auth-check-box {
  background: var(--accent);
}

.auth-check input:checked ~ .auth-check-box svg {
  opacity: 1;
  transform: scale(1);
}

.auth-check input:focus-visible ~ .auth-check-box {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------
   Auth links — dialed back to --text-sm (12px, +1px from original 11px)
   ---------------------------------------------------------------- */

.auth-link {
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--accent);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: var(--leading-snug);
}

.auth-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   Alt actions — Deriv + PAT, larger, centered
   ---------------------------------------------------------------- */

.auth-alt {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--divider);
}

.auth-alt .btn {
  justify-content: center;
  min-height: 46px;
  padding: 0 var(--space-4);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  gap: var(--space-2);
}

.auth-alt .btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   Bottom links
   ---------------------------------------------------------------- */

.auth-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  text-align: center;
  padding-top: var(--space-1);
}

.auth-legal {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  line-height: var(--leading-base);
  margin: 0;
}

.auth-legal a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--divider-strong);
  text-underline-offset: 2px;
}

.auth-legal a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* ----------------------------------------------------------------
   Signup — three-tier plan card
   ---------------------------------------------------------------- */

.signup-plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--auth-card-bg-fallback);
  border-radius: var(--radius-lg);
  max-width: 340px;
  width: 100%;
  text-align: left;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .signup-plan {
    background: var(--auth-card-bg);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
  }
}

.signup-plan-tier {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: var(--space-2);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  position: relative;
}

.signup-plan-tier-featured {
  background: var(--accent-subtle);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.signup-plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.signup-plan-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.signup-plan-badge {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--accent-fg);
  line-height: 1.4;
}

.signup-plan-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}

.signup-plan-price-value {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-extrabold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.signup-plan-price-period {
  font-size: 0.5625rem;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.signup-plan-desc {
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  color: var(--text-secondary);
  margin: 0;
}

/* ----------------------------------------------------------------
   Signup — option buttons
   ---------------------------------------------------------------- */

.signup-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.signup-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3);
  min-height: 68px;
  background: var(--bg-elevated);
  border: none;
  border-radius: var(--radius-md);
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease);
}

.signup-option:hover {
  background: var(--bg-subtle);
}

.signup-option:focus-visible {
  outline: var(--focus-ring-width) solid var(--accent);
  outline-offset: 2px;
}

.signup-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  color: var(--accent);
  flex-shrink: 0;
}

.signup-option-icon svg {
  width: 18px;
  height: 18px;
}

.signup-option[href*="/api/auth/signup"] .signup-option-icon,
.signup-option[href*="/api/auth/login"] .signup-option-icon {
  background: var(--accent);
  color: var(--accent-fg);
}

.signup-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.signup-option-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: var(--leading-snug);
}

.signup-option-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-snug);
}

.signup-option-arrow {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition:
    transform var(--duration-base) var(--ease-out),
    color var(--duration-fast) var(--ease);
}

.signup-option:hover .signup-option-arrow {
  color: var(--accent);
  transform: translateX(2px);
}

/* ----------------------------------------------------------------
   Auth modal
   ---------------------------------------------------------------- */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-base) var(--ease),
    visibility var(--duration-base) var(--ease);
}

.auth-modal.open {
  opacity: 1;
  visibility: visible;
}

.auth-modal-card {
  width: 100%;
  max-width: 400px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--auth-modal-bg-fallback);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-float);
  transform: translateY(8px) scale(0.98);
  transition: transform var(--duration-base) var(--ease-out);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .auth-modal-card {
    background: var(--auth-modal-bg);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
  }
}

.auth-modal.open .auth-modal-card {
  transform: translateY(0) scale(1);
}

.auth-modal-card-lg {
  max-width: 480px;
}

.auth-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.auth-modal-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: var(--leading-snug);
}

.auth-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}

.auth-modal-close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.auth-modal-close svg {
  width: 14px;
  height: 14px;
}

.auth-modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.auth-modal-body p {
  margin: 0;
}

.auth-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: var(--space-2);
  border-top: 1px solid var(--divider);
}

@media (max-width: 480px) {
  .auth-modal-card {
    padding: var(--space-3);
  }
  .auth-modal-foot {
    flex-direction: column-reverse;
  }
  .auth-modal-foot .btn {
    width: 100%;
  }
}

/* ----------------------------------------------------------------
   Channel list (request credentials modal)
   ---------------------------------------------------------------- */

.auth-channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 420px) {
  .auth-channels {
    grid-template-columns: 1fr 1fr;
  }
}

.auth-channel {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--duration-fast) var(--ease);
  min-width: 0;
}

.auth-channel:hover {
  background: var(--bg-subtle);
}

.auth-channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  color: #ffffff;
  flex-shrink: 0;
}

.auth-channel-icon svg {
  width: 18px;
  height: 18px;
}

.auth-channel-icon-wa { background: #25d366; }
.auth-channel-icon-tg { background: #229ed9; }
.auth-channel-icon-gm { background: #ea4335; }
.auth-channel-icon-dc { background: #5865f2; }
.auth-channel-icon-x  { background: #1d1f23; }
.auth-channel-icon-tt { background: #000000; }
.auth-channel-icon-ig { background: linear-gradient(135deg, #f09433, #dc2743, #bc1888); }
.auth-channel-icon-li { background: #0a66c2; }
.auth-channel-icon-sk { background: #00aff0; }

.auth-channel-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.auth-channel-name {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: var(--leading-tight);
}

.auth-channel-handle {
  font-size: var(--text-2xs);
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: var(--leading-snug);
}

/* ----------------------------------------------------------------
   Callback page
   ---------------------------------------------------------------- */

.callback-card {
  width: 100%;
  max-width: 400px;
  background: var(--auth-card-bg-fallback);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-float);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .callback-card {
    background: var(--auth-card-bg);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
  }
}

@media (min-width: 768px) {
  .callback-card {
    padding: var(--space-8) var(--space-6);
    gap: var(--space-4);
  }
}

.callback-spinner {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: var(--radius-full);
}

.callback-spinner svg {
  width: 22px;
  height: 22px;
  animation: spin 1.2s linear infinite;
}

.callback-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.callback-message {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
  max-width: 300px;
}

/* ----------------------------------------------------------------
   Reduced motion
   ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .auth-float-group::after,
  .auth-float-group input,
  .auth-float-group label,
  .auth-float-icon,
  .auth-pwd-toggle,
  .auth-theme-toggle,
  .auth-check-box,
  .auth-check-box svg,
  .auth-link,
  .signup-option,
  .signup-option-arrow,
  .auth-modal,
  .auth-modal-card,
  .auth-channel,
  .callback-spinner svg {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}