.reach-auth-surface {
  width: 100%;
  color: var(--reach-auth-text, #e9f3ff);
  font-family: Inter, system-ui, sans-serif;
}

.reach-auth-brand,
.reach-auth-brand > span,
.reach-auth-heading,
.reach-auth-form,
.reach-auth-switch {
  display: flex;
}

.reach-auth-brand {
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.8rem;
}

.reach-auth-brand img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.reach-auth-brand > span,
.reach-auth-heading,
.reach-auth-form {
  flex-direction: column;
}

.reach-auth-brand strong {
  color: var(--reach-auth-heading, #fff);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.reach-auth-brand small {
  color: var(--reach-auth-muted, #9dafc4);
  font-size: 0.78rem;
  margin-top: 0.16rem;
}

.reach-auth-heading > span {
  color: var(--reach-auth-accent, #58d8ff);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reach-auth-heading h2 {
  color: var(--reach-auth-heading, #fff);
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.08;
  margin: 0.55rem 0 0.7rem;
}

.reach-auth-heading p {
  color: var(--reach-auth-muted, #a8b8ca);
  line-height: 1.6;
  margin: 0 0 1.4rem;
}

.reach-auth-form {
  gap: 0.5rem;
}

.reach-auth-form label:not(.reach-auth-check) {
  color: var(--reach-auth-heading, #f6fbff);
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.45rem;
}

.reach-auth-form input:not([type="checkbox"]) {
  appearance: none;
  background: var(--reach-auth-input, rgba(6, 19, 35, 0.72));
  border: 1px solid var(--reach-auth-border, rgba(145, 190, 224, 0.28));
  border-radius: 0.7rem;
  color: var(--reach-auth-heading, #fff);
  font: inherit;
  min-height: 3rem;
  padding: 0 0.9rem;
  width: 100%;
}

.reach-auth-switch button:focus-visible,
.reach-auth-primary:focus-visible,
.reach-auth-cloudflare:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--reach-auth-accent, #58d8ff) 50%, transparent);
  outline-offset: 2px;
}

.reach-auth-form input:not([type="checkbox"]):focus-visible {
  border-color: var(--reach-auth-accent, #58d8ff);
  outline: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--reach-auth-accent, #58d8ff) 46%, transparent);
}

.reach-auth-form input[type="checkbox"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--reach-auth-accent, #58d8ff) 50%, transparent);
  outline-offset: 2px;
}

.reach-auth-primary,
.reach-auth-cloudflare {
  align-items: center;
  border-radius: 0.72rem;
  box-sizing: border-box;
  display: inline-flex;
  font: inherit;
  font-weight: 750;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.reach-auth-primary {
  background: linear-gradient(135deg, #49d5ff, #36f0c2);
  border: 0;
  color: #061424;
  cursor: pointer;
  margin-top: 0.9rem;
}

.reach-auth-primary:disabled {
  cursor: wait;
  opacity: 0.7;
}

.reach-auth-cloudflare {
  background: transparent;
  border: 1px solid var(--reach-auth-border, rgba(145, 190, 224, 0.32));
  color: var(--reach-auth-heading, #fff);
}

.reach-auth-separator {
  border-top: 1px solid var(--reach-auth-border, rgba(145, 190, 224, 0.2));
  margin: 1.35rem 0 0.85rem;
  text-align: center;
}

.reach-auth-separator span {
  background: var(--reach-auth-panel, #0b1b2e);
  color: var(--reach-auth-muted, #9dafc4);
  padding: 0 0.65rem;
  position: relative;
  top: -0.65rem;
}

.reach-auth-check {
  align-items: center;
  color: var(--reach-auth-muted, #a8b8ca);
  display: flex;
  font-size: 0.84rem;
  gap: 0.6rem;
  margin-top: 0.65rem;
}

.reach-auth-check input {
  height: 1rem;
  width: 1rem;
}

.reach-auth-status,
.reach-auth-unavailable {
  border-radius: 0.65rem;
  font-size: 0.86rem;
  line-height: 1.45;
  margin: 1rem 0 0;
  padding: 0.75rem 0.85rem;
}

.reach-auth-status[data-tone="error"],
.reach-auth-unavailable {
  background: rgba(255, 103, 128, 0.12);
  border: 1px solid rgba(255, 103, 128, 0.32);
  color: var(--reach-auth-error, #ffb8c3);
}

.reach-auth-status[data-tone="success"] {
  background: rgba(54, 240, 194, 0.1);
  border: 1px solid rgba(54, 240, 194, 0.28);
  color: var(--reach-auth-success, #8ff4d9);
}

.reach-auth-switch {
  align-items: center;
  color: var(--reach-auth-muted, #9dafc4);
  font-size: 0.86rem;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1.15rem;
}

.reach-auth-switch button {
  background: none;
  border: 0;
  color: var(--reach-auth-accent, #58d8ff);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 0.25rem;
}

[data-theme="light"] .reach-auth-surface,
.light .reach-auth-surface {
  --reach-auth-text: #193047;
  --reach-auth-heading: #07182b;
  --reach-auth-muted: #526b82;
  --reach-auth-input: rgba(245, 249, 253, 0.95);
  --reach-auth-border: rgba(22, 68, 101, 0.25);
  --reach-auth-panel: #f7fbff;
  --reach-auth-error: #9c2340;
  --reach-auth-success: #11664e;
}

@media (max-width: 540px) {
  .reach-auth-brand { margin-bottom: 1.25rem; }
  .reach-auth-heading h2 { font-size: 1.65rem; }
}
