/* Auth & nav login — Day Strike Trading */

.nav-end,
.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(var(--s-3), 3vw, var(--s-5));
  flex-shrink: 0;
  margin-left: auto;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  min-height: 48px;
  font-family: var(--font-body, "Inter Tight", sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0a0a0a;
  background: linear-gradient(135deg, #e8c97a 0%, #c9a24a 55%, #a8863a 100%);
  border: 1px solid rgba(232, 201, 122, 0.5);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(201, 162, 74, 0.2),
    0 4px 24px rgba(201, 162, 74, 0.35);
  flex-shrink: 0;
  transition:
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-login:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(232, 201, 122, 0.4),
    0 8px 32px rgba(201, 162, 74, 0.5);
  filter: brightness(1.06);
}

.nav-login:active {
  transform: translateY(0);
}

.nav-login--dashboard {
  white-space: nowrap;
}

.nav-sign-out {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  min-height: 44px;
  font-family: var(--font-body, "Inter Tight", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 245, 244, 0.58);
  background: transparent;
  border: 1px solid rgba(245, 245, 244, 0.16);
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition:
    color 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.nav-sign-out:hover:not(:disabled) {
  color: rgba(245, 245, 244, 0.92);
  border-color: rgba(245, 245, 244, 0.32);
  background: rgba(245, 245, 244, 0.04);
}

.nav-sign-out:disabled,
.nav-sign-out[aria-disabled="true"] {
  opacity: 0.55;
  cursor: wait;
}

.nav-auth-member {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 2vw, 14px);
  flex-shrink: 0;
}

.nav-auth-pending [data-nav-auth="guest"],
.nav-auth-pending .nav-auth-member {
  visibility: hidden;
  pointer-events: none;
}

/* Auth state — guest vs member nav (JS sets data-auth on .nav-end / .nav-actions) */
[hidden],
.nav-auth-is-hidden {
  display: none !important;
}

.nav-end[data-auth="member"] [data-nav-auth="guest"],
.nav-actions[data-auth="member"] [data-nav-auth="guest"] {
  display: none !important;
}

.nav-end[data-auth="guest"] [data-nav-auth="member"],
.nav-actions[data-auth="guest"] [data-nav-auth="member"] {
  display: none !important;
}

/* Nav Join Live Room — public site */
.nav-live-room {
  position: relative;
  flex-shrink: 0;
}

.nav-live-room-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  min-height: 44px;
  font-family: var(--font-body, "Inter Tight", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light, #e8c97a);
  background: transparent;
  border: 1px solid rgba(201, 162, 74, 0.45);
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav-live-room-btn:hover {
  border-color: var(--gold, #c9a24a);
  color: #fff8e1;
  background: rgba(201, 162, 74, 0.1);
}

.nav-live-room-error {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #ffb4b4;
  background: #1a1a1e;
  border: 1px solid rgba(255, 120, 120, 0.25);
  border-radius: 4px;
  z-index: 300;
}

/* Login page */
.auth-main {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-6) var(--s-5);
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(201, 162, 74, 0.1), transparent 60%),
    var(--bg, #0a0a0a);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: var(--s-6) var(--s-5);
  background: var(--bg-elevated, #131313);
  border: 1px solid var(--gold-line, rgba(201, 162, 74, 0.18));
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.auth-card-logo {
  display: block;
  height: 72px;
  width: auto;
  margin: 0 auto var(--s-4);
  filter: drop-shadow(0 4px 24px rgba(201, 162, 74, 0.3));
}

.auth-title {
  font-family: var(--font-display, "Fraunces", serif);
  font-size: var(--t-xl, 40px);
  font-weight: 300;
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1.1;
  margin-bottom: var(--s-3);
}

.auth-sub {
  text-align: center;
  color: var(--fg-muted, rgba(245, 245, 244, 0.62));
  font-size: var(--t-base, 15px);
  margin-bottom: var(--s-5);
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-field label {
  display: block;
  font-size: var(--t-xs, 11px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted, rgba(245, 245, 244, 0.62));
  margin-bottom: var(--s-2);
}

.auth-field input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body, "Inter Tight", sans-serif);
  font-size: var(--t-base, 15px);
  color: var(--fg, #f5f5f4);
  background: var(--bg, #0a0a0a);
  border: 1px solid var(--line-strong, rgba(245, 245, 244, 0.24));
  border-radius: 2px;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.auth-field input::placeholder {
  color: var(--fg-faint, rgba(245, 245, 244, 0.32));
}

.auth-field input:focus {
  border-color: var(--gold, #c9a24a);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.15);
}

.auth-submit {
  width: 100%;
  margin-top: var(--s-2);
  padding: 16px 28px;
  font-family: var(--font-body, "Inter Tight", sans-serif);
  font-size: var(--t-sm, 13px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: linear-gradient(135deg, #e8c97a 0%, #c9a24a 55%, #a8863a 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(201, 162, 74, 0.35);
  transition: transform 200ms ease, filter 200ms ease, box-shadow 200ms ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 8px 32px rgba(201, 162, 74, 0.45);
}

.auth-footer {
  margin-top: var(--s-5);
  text-align: center;
  font-size: var(--t-sm, 13px);
  color: var(--fg-faint, rgba(245, 245, 244, 0.32));
}

.auth-footer a {
  color: var(--gold-light, #e8c97a);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-form .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body, "Inter Tight", sans-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg, #f5f5f4);
  background: transparent;
  border: 1px solid var(--line-strong, rgba(245, 245, 244, 0.24));
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}

.auth-form .btn-ghost:hover {
  border-color: var(--gold, #c9a24a);
  color: var(--gold-light, #e8c97a);
}

.auth-field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}

.auth-field-label-row label {
  margin-bottom: 0;
}

.auth-forgot-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold-light, #e8c97a);
  text-decoration: none;
  white-space: nowrap;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-field .field-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-muted, rgba(245, 245, 244, 0.48));
}

.auth-success {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gold-light, #e8c97a);
  text-align: center;
  margin: var(--s-4) 0;
}

.auth-error {
  font-size: 13px;
  color: #f87171;
  text-align: center;
  line-height: 1.5;
}

.auth-error a {
  color: var(--gold-light, #e8c97a);
}

#forgot-reset-url {
  word-break: break-all;
  color: var(--gold-light, #e8c97a);
}

@media (max-width: 720px) {
  .nav-login {
    padding: 12px 22px;
    min-height: 44px;
    font-size: 12px;
  }

  .auth-logo--full {
    margin-bottom: 2.25rem;
  }

  .auth-logo--full img {
    width: min(260px, 90vw);
  }

  .auth-main {
    min-height: calc(100vh - 68px);
    padding: var(--s-5) var(--s-4);
  }

  .auth-card {
    padding: var(--s-5) var(--s-4);
  }

  .auth-title {
    font-size: var(--t-lg, 24px);
  }
}

/* ============================================================
   Day Strike Trading — Auth Pages (Supabase)
   APPEND THIS TO auth.css — do not replace existing styles
   ============================================================ */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(201, 162, 74, 0.1), transparent 58%),
    #0a0a0a;
}

.auth-body--with-nav {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.auth-body--with-nav .auth-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(76px + 2rem) 1.25rem 2.5rem;
  width: 100%;
  max-width: none;
}

@media (max-width: 720px) {
  .auth-body--with-nav .auth-wrap {
    padding-top: calc(64px + 1.5rem);
  }
}

.auth-wrap { width: 100%; max-width: 440px; }

.auth-logo {
  display: block;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 0;
  text-decoration: none;
}

.auth-logo img {
  height: 48px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.auth-logo--full {
  margin-bottom: 2.75rem;
  padding: 0 0.25rem;
}

.auth-logo--full img {
  width: min(300px, 88vw);
  height: auto;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 6px 28px rgba(201, 162, 74, 0.28));
  transition: filter 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-logo--full:hover img {
  filter: drop-shadow(0 10px 44px rgba(201, 162, 74, 0.42));
}

/* Unified auth card + form (signup, login, reset, checkout account block) */
.auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.auth-card h1 {
  font-family: var(--font-display, "Fraunces", serif);
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--fg, #f5f5f4);
}

.auth-card > .auth-sub {
  text-align: center;
  color: var(--fg-muted, rgba(245, 245, 244, 0.62));
  margin: 0 0 2rem;
  font-size: 15px;
  line-height: 1.5;
}

.auth-card > .auth-sub a {
  color: var(--gold-light, #e8c97a);
  text-decoration: none;
  font-weight: 500;
}

.auth-card > .auth-sub a:hover {
  text-decoration: underline;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-form .auth-field {
  margin-bottom: 1.25rem;
}

.auth-form label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted, rgba(245, 245, 244, 0.62));
  margin-bottom: 8px;
}

.auth-form input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 16px;
  font-family: var(--font-body, "Inter Tight", sans-serif);
  font-size: 15px;
  line-height: 1.4;
  color: var(--fg, #f5f5f4);
  background: var(--bg, #0a0a0a);
  border: 1px solid var(--line-strong, rgba(245, 245, 244, 0.24));
  border-radius: 4px;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.auth-form input::placeholder {
  color: var(--fg-faint, rgba(245, 245, 244, 0.32));
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.auth-form input:focus {
  border-color: var(--gold, #c9a24a);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.15);
}

.auth-form small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-faint, rgba(245, 245, 244, 0.45));
}

.auth-form button[type="submit"],
.auth-form .auth-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 16px 28px;
  font-family: var(--font-body, "Inter Tight", sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: linear-gradient(135deg, #e8c97a 0%, #c9a24a 55%, #a8863a 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(201, 162, 74, 0.35);
  transition: transform 200ms ease, filter 200ms ease, box-shadow 200ms ease;
}

.auth-form button[type="submit"]:hover:not(:disabled),
.auth-form .auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 8px 32px rgba(201, 162, 74, 0.45);
}

.auth-form button[type="submit"]:disabled,
.auth-form .auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.auth-msg {
  margin-top: 1.25rem;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}

.auth-msg:empty {
  display: none;
  margin: 0;
  padding: 0;
}

.auth-msg-error {
  background: rgba(120, 40, 40, 0.2);
  border: 1px solid rgba(200, 80, 80, 0.45);
  color: #f0b0b0;
}

.auth-msg-success {
  background: rgba(40, 100, 60, 0.2);
  border: 1px solid rgba(100, 180, 120, 0.4);
  color: #b8f0c8;
}

.auth-msg-info {
  background: rgba(201, 162, 74, 0.08);
  border: 1px solid rgba(201, 162, 74, 0.35);
  color: #e8c97a;
}

.auth-wrap > .auth-footer {
  text-align: center;
  color: var(--fg-faint, rgba(245, 245, 244, 0.4));
  font-size: 13px;
  line-height: 1.55;
  margin-top: 2rem;
}

.auth-wrap > .auth-footer a {
  color: var(--gold-light, #e8c97a);
  text-decoration: none;
}

.auth-wrap > .auth-footer a:hover {
  text-decoration: underline;
}

.auth-form-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line, rgba(245, 245, 244, 0.12));
}

.auth-form-section:last-of-type {
  margin-bottom: 0.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.auth-form-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light, #e8c97a);
  margin: 0 0 1.25rem;
}

.auth-form fieldset.auth-form-section {
  border: none;
  margin: 0 0 1.75rem;
  padding: 0 0 1.75rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.auth-form fieldset.auth-form-section:last-of-type {
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}

.auth-form fieldset.auth-form-section legend {
  padding: 0;
  display: block;
  float: none;
  width: 100%;
  margin: 0 0 1.25rem;
}

.auth-field .auth-field-label-row {
  margin-bottom: 8px;
}

.auth-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.25rem;
  width: 100%;
  min-width: 0;
}

.auth-name-row .auth-field {
  margin-bottom: 0;
  min-width: 0;
}

.auth-name-row .auth-field input {
  width: 100%;
  min-width: 0;
}

@media (max-width: 520px) {
  .auth-name-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-name-row .auth-field:first-child {
    margin-bottom: 1.25rem;
  }
}

.auth-helper {
  text-align: center;
  margin: 1.5rem 0 0;
}

.auth-helper a {
  color: var(--fg-muted);
  font-size: 14px;
}

/* Reset password page */
.reset-wrap {
  max-width: 440px;
}

.reset-card {
  text-align: left;
  width: 100%;
}

.reset-card .verified-title,
.reset-card .verified-sub {
  text-align: center;
}

.reset-card .auth-form {
  margin-top: 0;
}

.reset-card .auth-form small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

/* Verified landing page */
.verified-page {
  font-family: var(--font-body, "Inter Tight", sans-serif);
  color: var(--fg, #f5f5f4);
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(201, 162, 74, 0.12), transparent 62%),
    var(--bg, #0a0a0a);
}

.verified-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: var(--s-6, 64px) var(--s-4, 24px);
  text-align: center;
}

.verified-page .verified-logo img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 4px 24px rgba(201, 162, 74, 0.3));
}

.verified-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s-5, 40px);
}

.verified-title {
  font-family: var(--font-display, "Fraunces", serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 var(--s-3, 16px);
  color: var(--fg, #f5f5f4);
}

.verified-sub {
  font-size: var(--t-md, 18px);
  font-weight: 400;
  color: var(--fg-muted, rgba(245, 245, 244, 0.62));
  line-height: 1.55;
  margin: 0 0 var(--s-6, 64px);
}

.verified-page .verified-cta {
  min-width: 200px;
}

.verified-tagline {
  margin-top: var(--s-6, 64px);
  font-size: var(--t-xs, 11px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint, rgba(245, 245, 244, 0.32));
  line-height: 1.6;
}

.auth-support {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  color: rgba(245, 245, 244, 0.55);
}

.auth-support a {
  color: #e8c97a;
  text-decoration: none;
}

.auth-support a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .verified-wrap {
    padding: var(--s-5, 40px) var(--s-4, 24px);
  }

  .verified-title {
    font-size: 28px;
  }

  .verified-sub {
    font-size: var(--t-base, 15px);
    margin-bottom: var(--s-5, 40px);
  }
}
