/* Veo design tokens */
:root {
  color-scheme: light;
  --veo-accent: #1d7a2c;
  --veo-accent-light: #2a9e3f;
  --veo-accent-dark: #0f4d1a;
  --veo-accent-hover: #166324;
  --veo-accent-on: #ffffff;
  --veo-surface-card: #ffffff;
  --veo-on-surface: #141a14;
  --veo-on-surface-secondary: rgba(20, 26, 20, 0.62);
  --veo-outline: rgba(20, 26, 20, 0.1);
  --veo-outline-strong: rgba(20, 26, 20, 0.18);
  --veo-error: #c62828;
  --veo-radius-sm: 0.375rem;
  --veo-radius-md: 0.75rem;
  --veo-radius-lg: 1rem;
  --veo-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.18);
  --brand-logo-height: 3.5rem;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: linear-gradient(
    160deg,
    var(--veo-accent-light) 0%,
    var(--veo-accent) 42%,
    var(--veo-accent-dark) 100%
  );
  color: var(--veo-on-surface);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  padding: 0.75rem 1.25rem 2rem;
}

.brand-header {
  flex-shrink: 0;
}

.brand-lockup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1.35rem;
}

.brand-logo-wrap {
  width: calc(var(--brand-logo-height) * 259 / 194);
  height: var(--brand-logo-height);
  border-radius: calc(var(--brand-logo-height) * 0.11);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo-wrap:first-child {
  justify-self: end;
}

.brand-logo-wrap:last-child {
  justify-self: start;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-divider {
  justify-self: center;
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, 0.75);
}

.card {
  width: min(100%, 28rem);
  background: var(--veo-surface-card);
  border-radius: var(--veo-radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--veo-shadow);
}

h1 {
  margin: 0 0 0.35rem;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--veo-on-surface);
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--veo-on-surface);
}

.lead {
  margin: 0 0 1.35rem;
  color: var(--veo-on-surface-secondary);
  line-height: 1.5;
  font-size: 0.9375rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--veo-on-surface);
}

label:first-of-type {
  margin-top: 0;
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--veo-on-surface-secondary);
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--veo-outline-strong);
  border-radius: var(--veo-radius-md);
  background: #f7f7f5;
  color: var(--veo-on-surface);
  font: inherit;
  font-size: 1rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder {
  color: var(--veo-on-surface-secondary);
}

input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--veo-accent);
  background: var(--veo-surface-card);
  box-shadow: 0 0 0 3px rgba(29, 122, 44, 0.18);
}

.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1.15rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--veo-radius-md);
  background: #f7f7f5;
  border: 1px solid var(--veo-outline);
}

.terms-row input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
  accent-color: var(--veo-accent);
  cursor: pointer;
}

.terms-label {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--veo-on-surface);
  cursor: pointer;
}

.terms-label a {
  color: var(--veo-accent);
  font-weight: 600;
  text-decoration: none;
}

.terms-label a:hover {
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  margin-top: 1.15rem;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: var(--veo-radius-md);
  background: var(--veo-accent);
  color: var(--veo-accent-on);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--veo-accent-hover);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary:disabled[data-loading="true"] {
  cursor: wait;
}

.status {
  min-height: 1.25rem;
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.status.error {
  color: var(--veo-error);
}

.status-lead {
  margin: 0 0 0.35rem;
  font-weight: 500;
}

.status-errors {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.45;
}

.success-panel {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: rgba(29, 122, 44, 0.12);
  color: var(--veo-accent);
  font-size: 1.125rem;
  font-weight: 700;
}

.next-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-steps li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.next-steps li + li {
  margin-top: 1rem;
}

.step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background: var(--veo-accent);
  color: var(--veo-accent-on);
  font-size: 0.8125rem;
  font-weight: 700;
}

.step-text {
  flex: 1;
  padding-top: 0.1rem;
  line-height: 1.55;
  font-size: 0.9375rem;
}

.success-email-inline {
  color: var(--veo-on-surface-secondary);
  word-break: break-all;
}

.next-steps a,
.success-panel a {
  color: var(--veo-accent);
  font-weight: 600;
  text-decoration: none;
}

.next-steps a:hover,
.success-panel a:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

@media (min-width: 480px) {
  :root {
    --brand-logo-height: 4.25rem;
  }

  .page {
    gap: 1.5rem;
    padding: 1rem 1.5rem 2.5rem;
  }

  .card {
    padding: 2rem 1.75rem;
  }
}
