:root {
  --bg: #000000;
  --panel: #0d0d0f;
  --panel-soft: #141417;
  --line: #262626;
  --text: #f5f5f5;
  --muted: #a8a8a8;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 24%),
    #000000;
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  min-height: 100vh;
}

.auth-panel {
  padding: 2rem;
}

.auth-copy-panel {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding-inline: 3rem;
}

.brand-lockup img {
  display: block;
  width: 180px;
  max-width: 100%;
}

.auth-copy-panel h1,
.auth-form-panel h2 {
  margin: 0;
  line-height: 1.05;
}

.auth-copy-panel h1 {
  max-width: 580px;
  font-size: clamp(2.1rem, 4vw, 4.3rem);
}

.lead-copy,
.form-message {
  color: var(--muted);
}

.lead-copy {
  max-width: 560px;
  line-height: 1.65;
  font-size: 1rem;
}

.auth-form-panel {
  display: grid;
  align-content: center;
  gap: 1.3rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%);
  border-left: 1px solid var(--line);
}

.panel-head,
.mode-toggle,
.auth-form {
  display: grid;
  gap: 1rem;
}

.panel-head {
  max-width: 440px;
}

.mode-toggle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0a0a0c;
}

.mode-button,
.submit-button {
  border: 0;
  border-radius: 999px;
}

.mode-button {
  min-height: 42px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.mode-button.is-active {
  background: var(--panel-soft);
  color: var(--text);
}

.auth-form {
  max-width: 440px;
}

.field-row {
  display: grid;
  gap: 0.45rem;
}

.field-row span {
  font-weight: 600;
}

.field-row input {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111113;
  color: var(--text);
  outline: none;
}

.field-row input:focus {
  border-color: #3a3a3a;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: #f5f5f5;
}

.checkbox-row span {
  font-weight: 500;
}

.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.is-hidden {
  display: none !important;
}

.form-message {
  min-height: 1.4rem;
  margin: 0;
  font-size: 0.92rem;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.8rem 1rem;
}

.submit-button {
  background: #f5f5f5;
  color: #000000;
  font-weight: 700;
  cursor: pointer;
}

.auth-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #111113;
  color: var(--text);
  font-weight: 600;
}

.secondary-cta:hover,
.secondary-cta:focus-visible {
  border-color: #3a3a3a;
}

.text-action:hover,
.text-action:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
}

.trust-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.text-link {
  color: var(--muted);
}

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

  .auth-copy-panel,
  .auth-form-panel {
    padding: 1.25rem;
  }

  .auth-form-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .auth-panel {
    padding: 1rem;
  }
}
