:root {
  color-scheme: dark;
  --bg: #131313;
  --panel: #1b1b1b;
  --panel-strong: #171717;
  --panel-deep: #101010;
  --stroke: rgba(77, 69, 53, 0.4);
  --stroke-soft: rgba(77, 69, 53, 0.28);
  --text: #e2e2e2;
  --muted: #c6c6c7;
  --muted-soft: #a9aaaf;
  --subtle: #7f8085;
  --brand: #f2ca50;
  --brand-text: #131313;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.auth-body {
  background:
    radial-gradient(circle at top right, rgba(242, 202, 80, 0.12), transparent 22rem),
    linear-gradient(180deg, #121212 0%, #0e0e0f 100%);
}

.auth-shell {
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 32px 20px 96px;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-title {
  margin: 18px 0 0;
  font-size: 40px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.auth-lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  padding: 10px;
  border: 1px solid var(--stroke-soft);
  border-radius: 26px;
  background: rgba(27, 27, 27, 0.9);
}

.auth-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--stroke-soft);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(32, 32, 32, 0.96), rgba(24, 24, 24, 0.98));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.26);
}

.auth-stack {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: #131313;
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-input::placeholder {
  color: #85868b;
}

.auth-input:focus {
  border-color: rgba(242, 202, 80, 0.56);
  box-shadow: 0 0 0 4px rgba(242, 202, 80, 0.09);
}

.auth-input--compact {
  min-height: 52px;
}

.auth-button,
.auth-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 120ms ease, opacity 120ms ease, border-color 160ms ease, background 160ms ease;
}

.auth-button:active,
.auth-chip:active {
  transform: scale(0.99);
}

.auth-button--primary,
.auth-chip--active {
  background: var(--brand);
  color: var(--brand-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

.auth-button--ghost,
.auth-chip--ghost {
  border-color: var(--stroke);
  background: rgba(19, 19, 19, 0.88);
  color: var(--text);
}

.auth-button--accent {
  border-color: rgba(242, 202, 80, 0.42);
  background: rgba(242, 202, 80, 0.08);
  color: var(--brand);
}

.auth-button--link {
  text-decoration: none;
}

.auth-subcard,
.auth-provider-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--stroke-soft);
  background: var(--panel-deep);
}

.auth-provider-card {
  background: var(--panel-strong);
}

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

.auth-provider-choice__button {
  display: grid;
  min-height: 92px;
  gap: 7px;
  padding: 14px 12px;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: rgba(19, 19, 19, 0.88);
  color: var(--text);
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  transition: transform 160ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.auth-provider-choice__button:hover,
.auth-provider-choice__button:focus-visible,
.auth-provider-choice__button.is-selected {
  border-color: rgba(242, 202, 80, 0.7);
  background: linear-gradient(135deg, rgba(242, 202, 80, 0.2), rgba(242, 202, 80, 0.06));
  color: #fff8dc;
}

.auth-provider-choice__button:active {
  transform: scale(0.98);
}

.auth-provider-choice__button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.auth-provider-choice__eyebrow {
  color: var(--brand);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.auth-provider-detail {
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(242, 202, 80, 0.24);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(242, 202, 80, 0.1), rgba(16, 16, 16, 0.94) 42%);
  transform-origin: top center;
}

.auth-provider-detail--reveal {
  animation: auth-provider-reveal 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.auth-flow-panel {
  display: grid;
  gap: 14px;
  padding-top: 2px;
}

@keyframes auth-provider-reveal {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-subcard--dashed {
  border-style: dashed;
}

.auth-provider-lead {
  margin: 8px 0 0;
  color: #d0d0d2;
  font-size: 14px;
  line-height: 1.55;
}

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

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

.auth-status {
  min-height: 20px;
  margin: 0;
  color: var(--brand);
  font-size: 14px;
  line-height: 1.45;
}

.auth-meta {
  margin: 0;
  color: var(--muted-soft);
  font-size: 11px;
  line-height: 1.6;
}

.auth-inline-link {
  color: var(--brand);
}

.auth-operator {
  margin: 0;
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .auth-grid--double {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .auth-provider-choice__button {
    min-height: 84px;
    padding: 12px 10px;
    font-size: 12px;
  }
}
