@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap");

:root {
  --auth-v3-bg: #050505;
  --auth-v3-bg-elevated: #0c0c0c;
  --auth-v3-ink: #f4f4f2;
  --auth-v3-ink-muted: #9a9a94;
  --auth-v3-accent: #ff4d20;
  --auth-v3-line: rgba(244, 244, 242, 0.12);
  --auth-v3-on-orange-bg: #ff4d20;
  --auth-v3-on-orange-ink: #080808;
  --auth-v3-on-orange-caption: #f4f4f2;
  --auth-v3-font-display: "Syne", "Helvetica Neue", sans-serif;
  --auth-v3-font-body: "Outfit", "Helvetica Neue", sans-serif;
  --auth-v3-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.auth-v3-root {
  height: 100%;
  background: var(--auth-v3-bg);
  color-scheme: dark;
}

body.auth-v3 {
  min-height: 100svh;
  margin: 0;
  color: var(--auth-v3-ink);
  background: var(--auth-v3-bg);
  font-family: var(--auth-v3-font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.auth-v3-split {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.auth-v3-pane {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: clamp(2rem, 5vw, 4rem);
}

.auth-v3-pane--orange {
  background: var(--auth-v3-on-orange-bg);
  color: var(--auth-v3-on-orange-ink);
}

.auth-v3-pane--dark {
  background: var(--auth-v3-bg);
  color: var(--auth-v3-ink);
  justify-content: center;
}

.auth-v3-brand {
  margin-bottom: auto;
  padding-top: 0.5rem;
}

.auth-v3-brand img {
  display: block;
  height: clamp(2.5rem, 5vw, 3.25rem);
  width: auto;
  filter: brightness(0);
}

.auth-v3-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-v3-pane--orange .auth-v3-eyebrow {
  color: var(--auth-v3-on-orange-caption);
}

.auth-v3-pane--dark .auth-v3-eyebrow {
  color: var(--auth-v3-accent);
}

.auth-v3-display {
  margin: 0;
  font-family: var(--auth-v3-font-display);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.auth-v3-pane--orange .auth-v3-display span {
  color: var(--auth-v3-on-orange-caption);
}

.auth-v3-lede {
  margin: 1.25rem 0 0;
  max-width: 28rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.55;
}

.auth-v3-pane--orange .auth-v3-lede {
  color: rgba(8, 8, 8, 0.88);
}

.auth-v3-pane--dark .auth-v3-lede {
  color: rgba(244, 244, 242, 0.72);
}

.auth-v3-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(8, 8, 8, 0.72);
  text-decoration: none;
  transition: color 0.25s var(--auth-v3-ease);
}

.auth-v3-back:hover {
  color: var(--auth-v3-on-orange-ink);
}

.auth-v3-form-wrap {
  width: min(100%, 26rem);
  margin: 0 auto;
}

.auth-v3-form-head {
  margin-bottom: 2rem;
}

.auth-v3-form-title {
  margin: 0;
  font-family: var(--auth-v3-font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.auth-v3-form-sub {
  margin: 0.65rem 0 0;
  color: var(--auth-v3-ink-muted);
  font-size: 0.95rem;
}

.auth-v3-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-v3-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--auth-v3-ink-muted);
}

.auth-v3-form input[type="email"],
.auth-v3-form input[type="password"],
.auth-v3-form input[type="text"],
.auth-v3-form input[type="tel"] {
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--auth-v3-bg-elevated);
  border: 1px solid var(--auth-v3-line);
  border-radius: 0;
  color: var(--auth-v3-ink);
  font-family: var(--auth-v3-font-body);
  font-size: 1rem;
  transition: border-color 0.25s var(--auth-v3-ease);
}

.auth-v3-form input:focus {
  border-color: var(--auth-v3-accent);
  outline: none;
}

.auth-v3-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: -0.25rem 0 1.25rem;
}

.auth-v3-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--auth-v3-ink-muted);
  cursor: pointer;
}

.auth-v3-check input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--auth-v3-accent);
}

.auth-v3-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--auth-v3-accent);
  text-decoration: none;
}

.auth-v3-link:hover {
  color: #ff6338;
}

.auth-v3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1.1rem;
  border: none;
  font-family: var(--auth-v3-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--auth-v3-ease), color 0.25s var(--auth-v3-ease), border-color 0.25s var(--auth-v3-ease);
}

.auth-v3-btn--primary {
  background: var(--auth-v3-accent);
  color: #0a0a0a;
}

.auth-v3-btn--primary:hover {
  background: #ff6338;
}

.auth-v3-btn--secondary {
  background: transparent;
  color: var(--auth-v3-ink);
  border: 1px solid var(--auth-v3-line);
}

.auth-v3-btn--secondary:hover {
  border-color: var(--auth-v3-accent);
  color: var(--auth-v3-accent);
}

.auth-v3-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: var(--auth-v3-ink-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-v3-divider::before,
.auth-v3-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-v3-line);
}

.auth-v3-alert {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--auth-v3-line);
  background: var(--auth-v3-bg-elevated);
  font-size: 0.92rem;
}

.auth-v3-alert--error {
  border-color: rgba(255, 77, 32, 0.45);
  color: #ffb09a;
}

.auth-v3-alert--success {
  border-color: rgba(120, 220, 140, 0.35);
  color: #b8ebc4;
}

.auth-v3-alert--warning {
  border-color: rgba(255, 200, 80, 0.35);
  color: #ffe0a3;
}

.auth-v3-turnstile {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 4.25rem;
  margin-bottom: 1.25rem;
}

.auth-v3-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--auth-v3-line);
  text-align: center;
  color: var(--auth-v3-ink-muted);
  font-size: 0.82rem;
}

.auth-v3-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  margin-top: 0.75rem;
}

.auth-v3-footer-links a {
  color: var(--auth-v3-ink-muted);
  text-decoration: none;
  font-weight: 500;
}

.auth-v3-footer-links a:hover {
  color: var(--auth-v3-accent);
}

.auth-v3-footer-links span {
  color: rgba(154, 154, 148, 0.45);
}

.auth-v3-passkey-msg {
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.auth-v3-passkey-msg.hidden {
  display: none;
}

.auth-v3-form-head .auth-v3-eyebrow {
  margin-bottom: 0.75rem;
}

.auth-v3-form-foot {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-v3-btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-v3-btn-row .auth-v3-btn {
  text-decoration: none;
}

@media (min-width: 480px) {
  .auth-v3-btn-row {
    flex-direction: row;
  }

  .auth-v3-btn-row .auth-v3-btn {
    flex: 1;
  }
}

@media (max-width: 900px) {
  .auth-v3-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-v3-pane {
    min-height: auto;
  }

  .auth-v3-pane--orange {
    min-height: auto;
    padding-top: clamp(2.5rem, 8vw, 4rem);
    padding-bottom: clamp(2rem, 6vw, 3rem);
  }

  .auth-v3-pane--dark {
    padding-top: clamp(2rem, 6vw, 3rem);
    padding-bottom: clamp(2.5rem, 8vw, 4rem);
  }

  .auth-v3-brand {
    margin-bottom: 2rem;
  }
}
