:root {
  color-scheme: dark;
  --page: #07141d;
  --surface: #10212b;
  --border: #29424f;
  --text: #f3f7fa;
  --muted: #a2bbcd;
  --mint: #98e2cf;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--page);
  color: var(--text);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--mint);
  text-underline-offset: 4px;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
.button,
.google-button {
  transition:
    background-color 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}
button:disabled,
[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}
[hidden] {
  display: none !important;
}
.auth-shell {
  width: calc(100% - 96px);
  max-width: 1348px;
  margin: 0 auto;
}
.site-header {
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.9px;
}
.brand > img {
  width: 64px;
  height: 40px;
  color: var(--mint);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 16px;
  text-decoration: none;
}
.back-link > svg,
.secondary svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.language-switch {
  display: flex;
  gap: 8px;
}
.language-switch button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}
.language-switch button[aria-pressed="true"] {
  color: var(--mint);
  border-color: var(--mint);
}
.auth-stage {
  display: grid;
  grid-template-columns: 51% 49%;
  border: 2px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  background: var(--surface);
  margin-top: 32px;
  min-height: 794px;
}

.auth-content {
  padding: 68px 40px 58px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.view-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 38px;
}
.view-tabs button {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 11px;
  min-height: 60px;
  margin: -1px;
  padding: 12px;
  font-size: 18px;
  font-weight: 600;
}
.view-tabs button[aria-selected="true"] {
  border-color: var(--mint);
  color: var(--text);
  background: #152c32;
}
.view-tabs button[aria-selected="true"] svg {
  color: var(--mint);
}
.view-tabs svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1 {
  font-size: clamp(30px, 3.4vw, 52px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -1.5px;
  margin: 0 0 18px;
}
h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.4px;
  margin: 0 0 16px;
}
p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 18px;
}
.lead {
  font-size: 24px;
  line-height: 1.45;
  margin-bottom: 44px;
  letter-spacing: -0.3px;
}
button,
.button,
.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 20px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
  background: #17303c;
  border: 1px solid #3b5867;
  border-radius: 12px;
  color: var(--text);
}
.google-button {
  width: 100%;
  min-height: 74px;
  color: #10212b;
  background: #fff;
  border-color: #fff;
  font-size: 21px;
  font-weight: 650;
}
.google-button > svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.google-button:hover {
  background: #eaf2f6;
  border-color: #eaf2f6;
}
.google-button .spinner {
  display: none;
  width: 22px;
  height: 22px;
  border-color: #99a6ad;
  border-top-color: #10212b;
}
.google-button[aria-busy="true"] > svg {
  display: none;
}
.google-button[aria-busy="true"] .spinner {
  display: inline-block;
}
.microcopy {
  font-size: 15px;
  text-align: center;
  line-height: 1.5;
  margin: 16px 0 0;
}
.panel-footer {
  margin-top: auto;
  padding-top: 40px;
}
.guest-option {
  padding-top: 34px;
  border-top: 1px solid #456374;
}
.secondary {
  min-height: 68px;
  width: 100%;
  background: transparent;
  border-color: #bdcdda;
  font-size: 20px;
  justify-content: space-between;
  padding: 14px 26px;
}
.secondary span {
  flex: 1;
  text-align: center;
}
.secondary:hover {
  background: #1a313c;
  border-color: var(--mint);
}
.terms-note {
  font-size: 15px;
  text-align: right;
  margin: 54px 0 0;
}
.terms-note a {
  font-weight: 550;
}
.status:empty {
  display: none;
}
.status {
  font-size: 14px;
  line-height: 1.55;
  color: var(--mint);
  border: 1px solid #355c55;
  background: #16332f;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.status.error {
  color: #ffc6c1;
  border-color: #754c4d;
  background: #38282c;
}
.status.busy {
  color: var(--muted);
  background: #162c38;
  border-color: var(--border);
}
.loading-state {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 2px solid #35535e;
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.primary,
button.primary {
  background: var(--mint) !important;
  border-color: var(--mint) !important;
  color: #092a2d !important;
}
.primary:hover {
  filter: brightness(1.06);
}
label {
  display: block;
  color: #d5e2e9;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.55;
  margin-bottom: 8px;
}
input:not([type="checkbox"]) {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid #426170;
  border-radius: 10px;
  color: var(--text);
  background: #0b1a24;
  font-size: 16px;
  margin: 0 0 20px;
  transition: border-color 0.18s;
}
input:not([type="checkbox"]):focus {
  border-color: var(--mint);
  outline: 2px solid #98e2cf22;
}
input.code-input {
  font:
    600 30px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400;
  margin: 4px 0 18px;
}
input[type="checkbox"] {
  accent-color: var(--mint);
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 2px 0 0;
}
#approve-form > button,
#claim-form > button {
  width: 100%;
  margin-top: 22px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 100px;
}
#toggle-password {
  position: absolute;
  top: 7px;
  right: 6px;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--mint);
  font-size: 13px;
  min-height: 38px;
}
.account-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
details + details {
  margin-top: 18px;
}
summary {
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
}
details[open] summary {
  margin-bottom: 18px;
}
details p {
  font-size: 14px;
}
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.session-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.session-list li:first-child {
  border-top: 0;
}
.session-label {
  min-width: 0;
}
.session-label strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.session-label small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.session-list li button {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
}
.result-list li {
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 0;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--border);
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#qr {
  width: min(100%, 260px);
  margin: 22px auto 16px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
}
#qr svg {
  display: block;
  width: 100%;
  height: auto;
}
#device-code {
  display: block;
  text-align: center;
  color: var(--text);
  font:
    650 32px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 0.1em;
}
#device-url {
  display: block;
  text-align: center;
  font-size: 15px;
  overflow-wrap: anywhere;
  margin-top: 10px;
}
.pairing .auth-content {
  padding-top: 30px;
  padding-bottom: 30px;
}
.pairing .view-tabs {
  margin-bottom: 24px;
}
.pairing #tv .lead,
.pairing #start-tv,
.pairing #terms-note {
  display: none;
}
.pairing #tv h1 {
  font-size: 32px;
  text-align: center;
}
.pairing .guest-option {
  padding-top: 0;
  border: 0;
}
.pairing .guest-option .microcopy {
  display: none;
}
.pairing .panel-footer {
  padding-top: 24px;
}
.pairing #expiry {
  margin-top: 8px;
}
.success-state {
  text-align: center;
  padding: 12px 0;
}
.success-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #204c43;
  color: var(--mint);
  font-size: 32px;
}
.success-state .button {
  margin-top: 8px;
}
body.signed-in .auth-stage {
  min-height: 720px;
}
body.signed-in .panel-footer {
  padding-top: 24px;
}
body.signed-in .lead {
  margin-bottom: 24px;
}
@media (max-width: 1300px), (max-height: 900px) {
  .site-header {
    min-height: 64px;
    padding: 0 16px;
  }
  .brand {
    font-size: 26px;
    gap: 14px;
  }
  .brand > img {
    width: 52px;
  }
  .auth-stage {
    min-height: 640px;
    margin-top: 24px;
  }
  .auth-content {
    padding: 38px 32px;
  }
  .view-tabs {
    margin-bottom: 32px;
  }
  .view-tabs button {
    min-height: 52px;
    font-size: 16px;
    gap: 12px;
  }
  h1 {
    font-size: 38px;
  }
  .lead {
    font-size: 19px;
    margin-bottom: 32px;
  }
  .google-button {
    min-height: 60px;
    font-size: 17px;
  }
  .google-button > svg {
    width: 28px;
    height: 28px;
  }
  .secondary {
    min-height: 56px;
    font-size: 16px;
  }
  .microcopy,
  .terms-note {
    font-size: 13px;
  }
  .panel-footer {
    padding-top: 32px;
  }
  .terms-note {
    margin-top: 32px;
  }
  .guest-option {
    padding-top: 28px;
  }
}
@media (max-width: 900px) {
  .auth-shell {
    width: calc(100% - 40px);
    max-width: 580px;
  }
  .site-header {
    padding: 0 4px;
  }
  .brand {
    font-size: 23px;
    gap: 10px;
  }
  .brand > img {
    width: 42px;
  }
  .header-actions {
    gap: 12px;
  }
  .back-link {
    display: none;
  }
  .language-switch {
    gap: 4px;
  }
  .language-switch button {
    padding: 10px;
    font-size: 12px;
  }
  .auth-stage {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 24px;
    margin-top: 20px;
  }

  .auth-content {
    padding: 30px;
  }
  body.signed-in .auth-stage {
    min-height: 0;
  }
  .terms-note {
    text-align: center;
  }
}
@media (max-width: 480px) {
  .auth-shell {
    width: calc(100% - 32px);
    margin: 0 auto;
  }
  .site-header {
    gap: 10px;
    min-height: 56px;
  }
  .brand {
    font-size: 21px;
    letter-spacing: -0.5px;
  }
  .brand > img {
    width: 36px;
    height: 28px;
  }
  .language-switch button {
    padding: 8px;
  }
  .auth-content {
    padding: 26px 22px 28px;
  }
  .view-tabs {
    margin-bottom: 30px;
  }
  .view-tabs button {
    font-size: 14px;
    gap: 9px;
    min-height: 48px;
  }
  .view-tabs svg {
    width: 23px;
    height: 23px;
  }
  h1 {
    font-size: 32px;
    letter-spacing: -1px;
    margin-bottom: 16px;
  }
  .lead {
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 28px;
  }
  .google-button {
    min-height: 56px;
    font-size: 15px;
    gap: 10px;
  }
  .google-button > svg {
    width: 26px;
    height: 26px;
  }
  .microcopy {
    font-size: 12px;
    line-height: 1.65;
  }
  .panel-footer {
    padding-top: 28px;
  }
  .guest-option {
    padding-top: 24px;
  }
  .secondary {
    min-height: 54px;
    font-size: 14px;
    padding: 12px;
  }
  .secondary > svg {
    width: 20px;
    height: 20px;
  }
  .terms-note {
    font-size: 12px;
    margin-top: 28px;
  }
  .session-list li {
    align-items: flex-start;
  }
  .session-list li button {
    flex-shrink: 0;
  }
  .pairing .auth-content {
    padding: 22px;
  }
  .pairing .view-tabs {
    margin-bottom: 20px;
  }
  .pairing #tv h1 {
    font-size: 28px;
  }
  #qr {
    max-width: 220px;
    margin-top: 16px;
  }
  #device-code {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.approval-complete #approve > h1,
.approval-complete #approve > .lead {
  display: none;
}
