/* ==========================================================================
   Auth screens — split layout, floating labels, live password checklist.
   Mirrors the structure of the source site's /login, /register and
   /forgot-password pages.
   ========================================================================== */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) { .auth { grid-template-columns: 1.05fr 1fr; } }

/* ------------------------------------------------------------------ aside */

.auth__aside {
  display: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #1c1510 0%, #0f0a06 60%, #1c0f06 100%);
  color: var(--cream);
  padding: 2.8rem 3rem;
  flex-direction: column;
}
@media (min-width: 1000px) { .auth__aside { display: flex; } }

.auth__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.auth__glow--a {
  width: 600px; height: 600px; top: -160px; left: -160px;
  background: radial-gradient(circle, rgba(155, 44, 44, .2) 0%, transparent 65%);
  animation: aGlowA 15s ease-in-out infinite alternate;
}
.auth__glow--b {
  width: 450px; height: 450px; bottom: -80px; right: -80px;
  background: radial-gradient(circle, rgba(193, 78, 42, .18) 0%, transparent 65%);
  animation: aGlowB 18s ease-in-out infinite alternate;
}
@keyframes aGlowA { to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes aGlowB { to { transform: translate(-50px, -30px) scale(1.1); } }

.auth__aside-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: auto;
}
.auth__aside-link {
  font-size: 13px;
  color: rgba(245, 240, 232, .6);
  text-decoration: none;
  transition: color .2s;
}
.auth__aside-link:hover { color: var(--accent-soft); }

.auth__aside-body { position: relative; padding: 3rem 0; }
.auth__aside h1 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(38px, 3.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -1.2px;
  margin: 0 0 18px;
}
.auth__aside h1 em { font-style: italic; color: var(--accent); }
.auth__aside-lead {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 240, 232, .55);
  max-width: 42ch;
  margin: 0 0 34px;
}

/* Live-quote cards on the sign-in aside */
.auth__quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }
.auth__quote {
  border: 1px solid rgba(245, 240, 232, .1);
  background: rgba(245, 240, 232, .04);
  border-radius: 10px;
  padding: 12px 14px;
}
.auth__quote b { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.auth__quote span { display: block; font-family: var(--mono); font-size: 13px; margin-top: 4px; }
.auth__quote i { font-family: var(--mono); font-size: 11px; font-style: normal; font-weight: 700; color: var(--green); }
.auth__quote i.is-down { color: #ef4444; }

/* Trader cards on the signup aside */
.auth__traders { display: grid; gap: 10px; max-width: 420px; }
.auth__trader {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(245, 240, 232, .1);
  background: rgba(245, 240, 232, .04);
  border-radius: 12px;
  padding: 12px 14px;
}
.auth__trader-av {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.auth__trader b { display: block; font-size: 13.5px; font-weight: 600; }
.auth__trader span { display: block; font-size: 11.5px; color: rgba(245, 240, 232, .5); }
.auth__trader em {
  margin-left: auto;
  font-family: var(--mono);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

/* Security bullets on the password-reset aside */
.auth__bullets { display: grid; gap: 12px; max-width: 420px; margin: 0; padding: 0; list-style: none; }
.auth__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(245, 240, 232, .62);
  line-height: 1.5;
}
.auth__bullets svg { color: var(--accent-soft); flex-shrink: 0; margin-top: 2px; }

.auth__stats {
  position: relative;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(245, 240, 232, .1);
}
.auth__stats b {
  display: block;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -.5px;
  color: var(--accent-soft);
}
.auth__stats span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, .45);
}

/* ------------------------------------------------------------------- form */

.auth__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 48px;
  background: var(--paper);
}
.auth__form { width: 100%; max-width: 400px; }

.auth__eyebrow {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.auth__title {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -.8px;
  margin: 0 0 10px;
}
.auth__title em { font-style: italic; color: var(--accent); }
.auth__switch { font-size: 13.5px; color: var(--muted); margin: 0 0 26px; }
.auth__switch a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth__switch a:hover { text-decoration: underline; }

/* OAuth */
.a-oauth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .75rem 1rem;
  font-size: .82rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 1.25rem;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.a-oauth:hover { background: var(--cream); border-color: #d8d2c6; }

.a-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; }
.a-divider::before, .a-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.a-divider span {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Floating-label fields */

/* Password field + live rule checklist */
.a-pw-wrap { position: relative; }
.a-pw-toggle {
  position: absolute;
  right: .7rem;
  top: .7rem;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}
.a-pw-toggle:hover { color: var(--accent); }

.a-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem .75rem;
  margin-bottom: 1.25rem;
}
.a-rule {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s;
}
.a-rule::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
  transition: opacity .2s;
}
.a-rule.is-ok { color: var(--green); }
.a-rule.is-ok::before { opacity: 1; }

.a-submit {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--cream);
  font-weight: 800;
  font-size: .9rem;
  padding: .85rem 1rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(28, 21, 16, .2);
  transition: background .2s, transform .15s;
}
.a-submit:hover { background: var(--accent-hover); transform: translateY(-1px); }
.a-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.a-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 1.1rem; }
.a-remember { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); }
.a-remember input { accent-color: var(--accent); width: 15px; height: 15px; }
.a-forgot { font-size: .8rem; color: var(--accent); font-weight: 600; text-decoration: none; }
.a-forgot:hover { text-decoration: underline; }

.a-foot { text-align: center; font-size: .8rem; color: var(--muted); margin: 1.4rem 0 0; }
.a-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.a-legal {
  text-align: center;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .1em;
  color: var(--muted-2);
  margin: 2.2rem 0 0;
}

.a-note {
  background: rgba(193, 78, 42, .07);
  border: 1px solid rgba(193, 78, 42, .18);
  border-radius: 8px;
  padding: .7rem .9rem;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.a-note b { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .auth__glow--a, .auth__glow--b { animation: none; }
}

.a-field:has(.a-error) .a-input { border-color: #ef4444; }
