:root {
  color: #111216;
  background: #f6f6f4;
  font-family: var(--font-sans, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f6f6f4;
}

button,
input {
  font: inherit;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(500px, 1.08fr);
}

.auth-story {
  min-height: 100vh;
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  background: #ffd400;
  border-right: 1px solid rgba(17, 18, 22, 0.12);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.05;
}

.auth-brand small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.62;
}

.auth-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffd400;
  background: #111216;
  border-radius: 10px;
}

.auth-brand-mark svg {
  width: 23px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-story-copy {
  max-width: 620px;
}

.auth-eyebrow {
  margin: 0 0 16px;
  color: #806900;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.auth-story-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.auth-story-copy > p:last-child {
  max-width: 580px;
  margin: 28px 0 0;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
}

.auth-trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(17, 18, 22, 0.24);
}

.auth-trust-list span {
  padding: 18px 18px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.auth-trust-list b {
  display: block;
  margin-bottom: 8px;
  color: #7a6500;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.auth-entry {
  min-height: 100vh;
  padding: 42px;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100%, 500px);
  padding: clamp(30px, 5vw, 56px);
  background: #fff;
  border: 1px solid #deded8;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(25, 25, 20, 0.08);
}

.auth-card header h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: -0.045em;
}

.auth-card header > p:last-child {
  margin: 14px 0 34px;
  color: #6a6a64;
  font-size: 15px;
  line-height: 1.55;
}

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

.auth-card label {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 750;
}

.auth-card input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  color: #111216;
  background: #fbfbf9;
  border: 1px solid #d7d7d0;
  border-radius: 10px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.auth-card input:focus {
  background: #fff;
  border-color: #c5a200;
  box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.18);
}

#login-code {
  max-width: 180px;
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.auth-card button {
  min-height: 54px;
  margin-top: 20px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #111216;
  background: #ffd400;
  border: 1px solid #e6bf00;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease;
}

.auth-card button:hover:not(:disabled) {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.auth-card button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-error {
  margin: 10px 0 0;
  padding: 12px 14px;
  color: #842525;
  background: #fff0ee;
  border: 1px solid #f2c7c2;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.45;
}

.auth-card footer {
  margin-top: 28px;
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #77776f;
  border-top: 1px solid #ecece7;
  font-size: 11px;
  line-height: 1.45;
}

.auth-secure-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: #16836b;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #e5f5f0;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-story {
    min-height: auto;
    padding: 28px 24px 34px;
    gap: 38px;
  }

  .auth-story-copy h1 {
    font-size: clamp(38px, 11vw, 60px);
  }

  .auth-trust-list {
    display: none;
  }

  .auth-entry {
    min-height: auto;
    padding: 24px 16px 44px;
    background: #ffd400;
  }

  .auth-card {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
