/* Pursuit One HIG tokens (mobile/lib/theme/pursuit_colors.dart) - light
   theme only, matching this page's one real context (a phone/desktop
   browser opening an invite link, not the native app itself). */
:root {
  --primary: #7c5cff;
  --primary-dark: #5f42e8;
  --background: #f8faf0;
  --surface: #ffffff;
  --surface-elevated: #e1e4d9;
  --text-primary: #05111f;
  --text-secondary: #43483e;
  --danger: #ef4444;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--background);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--surface-elevated);
  border-radius: 20px;
  padding: 32px 28px;
  margin-top: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: inline-block;
}

.brand-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

h1 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 12px;
  text-wrap: balance;
}

p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.fine-print {
  font-size: 12px;
  margin-top: 20px;
  margin-bottom: 0;
}

.hint {
  font-size: 13px;
  margin-top: 6px;
  margin-bottom: 0;
}

.state[hidden] {
  display: none;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-primary {
  background: var(--primary-dark);
  color: #ffffff;
}

.btn-dark {
  background: #000000;
  color: #ffffff;
}

.btn-light {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--surface-elevated);
}

.btn-wide {
  margin-top: 4px;
}

.field {
  margin-bottom: 18px;
}

.field[hidden] {
  display: none;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--surface-elevated);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--surface);
}

input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.form-error {
  color: var(--danger);
  font-size: 13px;
  min-height: 1em;
}

.spinner {
  width: 28px;
  height: 28px;
  margin: 24px auto;
  border-radius: 50%;
  border: 3px solid var(--surface-elevated);
  border-top-color: var(--primary-dark);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.icon-apple::before {
  content: '\F8FF';
  font-family: -apple-system, system-ui;
}

.icon-google::before {
  content: 'G';
  font-weight: 800;
}

.icon-email::before {
  content: '\2709';
}
