.auth-body {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(210, 193, 175, 0.08), transparent 20%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}

.auth-shell {
  height: 100vh;
  min-height: 100vh;
  padding: 24px;
}

.auth-top-action {
  position: absolute;
  top: 36px;
  right: 36px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(238, 238, 238, 0.1);
  background: #0d0d0d;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.2s ease;
}

.auth-header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.auth-top-action:hover,
.auth-top-action:active,
.auth-top-action:focus-visible {
  background: #F4F0EC;
  color: #050505;
  border-color: #050505;
  box-shadow: none;
  transform: scale(1.04);
  outline: none;
}

.auth-top-action span {
  font-size: 18px;
  line-height: 1;
}

.auth-warning-screen {
  min-height: calc(100vh - 48px);
  display: none;
  align-items: center;
  justify-content: center;
}

.auth-warning-panel {
  width: min(100%, 760px);
  padding: 36px 34px 32px;
  border-radius: 30px;
  border: 1px solid rgba(238, 238, 238, 0.1);
  background:
    radial-gradient(circle at top left, rgba(210, 193, 175, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(14, 14, 14, 0.98), rgba(8, 8, 8, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.auth-warning-callout {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(210, 193, 175, 0.16);
  background: rgba(210, 193, 175, 0.08);
}

.auth-warning-label {
  margin-bottom: 8px;
  color: rgba(238, 238, 238, 0.52);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-warning-url {
  color: #f3e8dd;
  font-size: 24px;
  line-height: 1.25;
  text-decoration: none;
  word-break: break-word;
}

.auth-warning-url:hover {
  color: #ffffff;
}

.auth-layout {
  height: calc(100vh - 48px);
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(420px, 1.08fr);
  gap: 20px;
}

.auth-panel,
.auth-sidecard {
  border-radius: 30px;
  border: 1px solid rgba(238, 238, 238, 0.1);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  min-height: 0;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(210, 193, 175, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(14, 14, 14, 0.98), rgba(8, 8, 8, 0.98));
}

.auth-panel-shell {
  width: min(100%, 560px);
  max-height: 100%;
  padding: 36px 34px 32px;
  overflow: auto;
}

.auth-panel-header {
  margin-bottom: 28px;
}

.auth-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(210, 193, 175, 0.16);
  background: rgba(255, 255, 255, 0.03);
  padding: 5px;
}

.auth-eyebrow {
  margin-bottom: 6px;
  color: rgba(210, 193, 175, 0.92);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-panel-header h1 {
  margin: 0;
  color: #eeeeee;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 640;
}

.auth-view-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(238, 238, 238, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.auth-view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  color: rgba(238, 238, 238, 0.62);
  text-decoration: none;
  font-size: 13px;
  transition: 180ms ease;
}

.auth-view-link:hover {
  color: #eeeeee;
}

.auth-view-link.is-active {
  color: #f6efe8;
  background: rgba(210, 193, 175, 0.1);
  border: 1px solid rgba(210, 193, 175, 0.16);
}

.auth-view {
  display: none;
}

.auth-view.is-active {
  display: block;
}

.auth-view-intro {
  margin-bottom: 24px;
}

.auth-kicker {
  margin-bottom: 10px;
  color: rgba(210, 193, 175, 0.92);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-title {
  margin: 0 0 10px;
  color: #eeeeee;
  font-size: 30px;
  line-height: 1.06;
  font-weight: 620;
}

.auth-copy {
  margin: 0;
  color: rgba(238, 238, 238, 0.62);
  line-height: 1.72;
  font-size: 14px;
}

.auth-login-description {
  color: rgba(238, 238, 238, 0.78);
  max-width: 54ch;
}

.auth-microcopy {
  margin: 10px 0 0;
  color: rgba(238, 238, 238, 0.7);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.auth-copy code {
  color: rgba(210, 193, 175, 0.95);
}

.auth-copy-compact {
  max-width: 48ch;
}

.auth-form {
  display: grid;
  gap: 18px;
}

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

.auth-field-full {
  grid-column: 1 / -1;
}

.auth-field span {
  display: block;
  margin-bottom: 9px;
  color: rgba(238, 238, 238, 0.78);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
}

.auth-field input[aria-invalid="true"],
.auth-field select[aria-invalid="true"],
.auth-field textarea[aria-invalid="true"] {
  border-color: rgba(233, 138, 131, 0.4);
  box-shadow: 0 0 0 1px rgba(233, 138, 131, 0.18);
}

.auth-field textarea {
  min-height: 120px;
  resize: vertical;
}

.auth-helper {
  display: block;
  margin-top: 7px;
  color: rgba(238, 238, 238, 0.42);
  font-size: 11px;
  line-height: 1.55;
}

.auth-helper-row {
  margin-top: -4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-availability-note {
  min-height: 18px;
  margin-top: -10px;
  color: rgba(238, 238, 238, 0.36);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.auth-availability-note.has-state {
  opacity: 1;
  transform: translateY(0);
}

.auth-availability-note-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-availability-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.auth-availability-icon svg {
  width: 14px;
  height: 14px;
}

.auth-availability-message {
  letter-spacing: 0.06em;
}

.auth-availability-suggestions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.auth-availability-suggestion {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(238, 238, 238, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(238, 238, 238, 0.7);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.auth-availability-suggestion:hover {
  border-color: rgba(210, 193, 175, 0.22);
  color: #f3e8dd;
  background: rgba(210, 193, 175, 0.08);
}

.auth-availability-note.is-checking {
  color: rgba(210, 193, 175, 0.72);
}

.auth-availability-note.is-available {
  color: rgba(132, 222, 255, 0.92);
}

.auth-availability-note.is-unavailable {
  color: rgba(246, 209, 124, 0.94);
}

.auth-static-field {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(238, 238, 238, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.008)),
    #0b0b0b;
  color: rgba(238, 238, 238, 0.82);
  line-height: 1.6;
}

.auth-phone-input {
  display: flex;
  align-items: center;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(238, 238, 238, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.008)),
    #0b0b0b;
  padding: 0 14px;
}

.auth-phone-prefix {
  padding-right: 12px;
  margin-right: 12px;
  border-right: 1px solid rgba(238, 238, 238, 0.08);
  color: rgba(210, 193, 175, 0.94);
  font-weight: 600;
}

.auth-phone-input input {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 0;
}

.auth-phone-input input:focus {
  outline: none;
}

.auth-submit {
  min-height: 48px;
  width: 100%;
  justify-content: center;
  margin-top: 2px;
}

.auth-inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.auth-page-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(238, 238, 238, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.auth-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  color: rgba(238, 238, 238, 0.62);
  text-decoration: none;
  font-size: 13px;
  transition: 180ms ease;
}

.auth-page-link:hover {
  color: #eeeeee;
}

.auth-page-link.is-active {
  color: #f6efe8;
  background: rgba(210, 193, 175, 0.1);
  border: 1px solid rgba(210, 193, 175, 0.16);
}

.auth-inline-divider {
  width: 1px;
  height: 12px;
  background: rgba(238, 238, 238, 0.12);
}

.auth-link {
  color: rgba(210, 193, 175, 0.92);
  text-decoration: none;
  font-size: 13px;
}

.auth-link:hover {
  color: #f3e8dd;
}

.auth-error {
  margin: 20px 0 0;
  padding: 13px 14px;
  border-radius: 16px;
  color: #ffd7d2;
  background: rgba(233, 138, 131, 0.08);
  border: 1px solid rgba(233, 138, 131, 0.16);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.auth-error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-note {
  margin-top: 18px;
  color: rgba(238, 238, 238, 0.44);
  font-size: 12px;
  line-height: 1.7;
}

.auth-panel-shell-wide {
  width: min(100%, 720px);
}

.auth-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.auth-step-count {
  margin-bottom: 24px;
  color: rgba(238, 238, 238, 0.58);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-step-indicator {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(238, 238, 238, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(238, 238, 238, 0.52);
}

.auth-step-indicator span {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(238, 238, 238, 0.12);
  font-size: 12px;
}

.auth-step-indicator strong {
  font-size: 12px;
  font-weight: 520;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-step-indicator.is-active,
.auth-step-indicator.is-complete {
  color: #eeeeee;
}

.auth-step-indicator.is-active {
  border-color: rgba(210, 193, 175, 0.22);
  background: rgba(210, 193, 175, 0.08);
}

.auth-step-indicator.is-active span,
.auth-step-indicator.is-complete span {
  border-color: rgba(210, 193, 175, 0.32);
  color: #f2e6d7;
}

.auth-step-panel {
  display: none;
  gap: 20px;
  opacity: 0;
  transform: translateY(8px);
}

.auth-step-panel.is-active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.auth-step-panel.is-entering {
  animation: authStepFade 0.3s ease forwards;
}

.auth-step-heading h3 {
  margin: 0 0 8px;
  color: #eeeeee;
  font-size: 20px;
}

.auth-step-heading p {
  margin: 0;
  color: rgba(238, 238, 238, 0.6);
  line-height: 1.7;
}

.auth-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-step-actions .btn {
  min-width: 140px;
  justify-content: center;
}

.auth-terms-panel {
  max-height: 260px;
  overflow: auto;
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(238, 238, 238, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    #0b0b0b;
}

.auth-terms-panel h4 {
  margin: 0 0 12px;
  color: #f2e6d7;
  font-size: 15px;
}

.auth-terms-panel p {
  margin: 0 0 14px;
  color: rgba(238, 238, 238, 0.64);
  line-height: 1.72;
  font-size: 12px;
}

.auth-terms-meta {
  color: rgba(238, 238, 238, 0.44);
  font-size: 12px;
}

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

.auth-terms-options {
  grid-template-columns: 1fr;
}

.auth-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(238, 238, 238, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(238, 238, 238, 0.76);
}

.auth-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #d2c1af;
}

.auth-toggle-full {
  grid-column: 1 / -1;
}

.auth-sidecard {
  position: relative;
  background:
    linear-gradient(180deg, rgba(244, 240, 236, 0.95), rgba(230, 224, 217, 0.92));
}

.auth-side-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #151313;
  overflow: auto;
}

.auth-preview-content {
  position: relative;
  padding: 36px 36px 0;
}

.auth-side-top {
  max-width: 38ch;
}

.auth-side-kicker {
  margin-bottom: 12px;
  color: #6e6258;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-side-title {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.06;
  color: #111111;
}

.auth-side-copy {
  margin: 0;
  color: rgba(17, 17, 17, 0.72);
  line-height: 1.75;
}

.auth-preview-frame {
  position: relative;
  flex: 1;
  min-height: 380px;
  margin: 0 36px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.4);
}

.auth-preview-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
  opacity: 0;
  transition: opacity 220ms ease;
}

.auth-preview-frame.is-live .auth-preview-iframe {
  opacity: 1;
}

.auth-preview-fallback {
  position: absolute;
  inset: 0;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(210, 193, 175, 0.4), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(239, 233, 227, 0.9)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='rgba(17,17,17,0.05)' stroke-width='1'%3E%3Cpath d='M0 30h180M0 90h180M0 150h180M30 0v180M90 0v180M150 0v180'/%3E%3C/g%3E%3C/svg%3E") center/180px 180px;
}

.auth-preview-frame.is-live .auth-preview-fallback {
  opacity: 0;
  pointer-events: none;
}

.auth-preview-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.58);
  color: #5d534b;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-preview-copy h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.1;
  color: #111111;
}

.auth-preview-copy p {
  margin: 0;
  max-width: 40ch;
  color: rgba(17, 17, 17, 0.72);
  line-height: 1.7;
}

.auth-roadmap {
  display: grid;
  gap: 10px;
}

.auth-roadmap-title {
  color: #5d534b;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-roadmap-list {
  display: grid;
  gap: 8px;
  color: rgba(17, 17, 17, 0.78);
  font-size: 13px;
}

.auth-preview-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-preview-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.48);
  color: #342f2b;
  font-size: 12px;
}

.auth-side-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 36px 36px;
  color: rgba(17, 17, 17, 0.54);
  font-size: 12px;
  line-height: 1.55;
}

.auth-toast-container {
  position: fixed;
}

.app-loading-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.08);
  border-top-color: #d2c1af;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes authStepFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-mode-file .auth-layout {
  display: none;
}

.auth-mode-file .auth-warning-screen {
  display: flex;
}

@media (max-width: 1120px) {
  .auth-layout {
    height: calc(100vh - 48px);
    grid-template-columns: 1fr;
  }

  .auth-sidecard {
    min-height: 420px;
  }
}

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

  .auth-top-action {
    top: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
  }

  .auth-layout {
    height: calc(100vh - 32px);
    min-height: calc(100vh - 32px);
  }

  .auth-panel-shell {
    padding: 24px;
  }

  .auth-preview-content {
    padding: 24px 24px 0;
  }

  .auth-preview-frame {
    margin: 0 24px;
  }

  .auth-side-footer {
    padding: 0 24px 24px;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-page-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-title {
    font-size: 26px;
  }

  .auth-side-title {
    font-size: 28px;
  }

  .auth-header-row {
    align-items: flex-start;
  }

  .auth-page-link {
    width: 100%;
  }

  .auth-side-footer {
    flex-direction: column;
  }

  .auth-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-step-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-step-actions .btn {
    width: 100%;
  }

  .auth-visibility-grid {
    grid-template-columns: 1fr;
  }

  .auth-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-step-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-step-actions .btn {
    width: 100%;
  }

  .auth-visibility-grid {
    grid-template-columns: 1fr;
  }

  .auth-warning-url {
    font-size: 18px;
  }
}
