/* Nura auth. Same paper/Inter language as `/`. No marketing copy. */

:root {
  --paper: #ffffff;
  --paper-alt: #fafafb;
  --ink: #111111;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --faint: #a3a3a3;
  --hairline: rgba(17, 17, 17, 0.08);
  --hairline-strong: rgba(17, 17, 17, 0.14);
  --cta-ink: #ffffff;
  --danger: #9c3a34;
  --danger-wash: #fbf1f0;
  --danger-line: #eed9d7;
  --ok: #3f8f68;
  --ok-wash: #e9f3ee;
  --ok-line: #d5e8dd;
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-control: 10px;
  --r-pill: 999px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.auth-head,
.auth-main {
  position: relative;
  z-index: 1;
}

.auth-head {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wordmark-glyph {
  width: 18px;
  height: 18px;
  color: var(--ink);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 72px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.auth-card .lede {
  margin: 10px 0 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.field input {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-control);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.field input:focus {
  outline: none;
  border-color: var(--ink);
}

.field input:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.28);
  outline-offset: 3px;
}

.hint {
  margin: -8px 0 16px;
  font-size: 13px;
  color: var(--faint);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cta-ink);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

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

.btn-secondary {
  background: var(--paper);
  border-color: var(--hairline-strong);
  color: var(--ink);
  margin-top: 10px;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.alt {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.alt a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 3px;
  font-weight: 500;
}

.alt a:hover {
  text-decoration-color: var(--ink);
}

.form-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--danger);
  background: var(--danger-wash);
  border: 1px solid var(--danger-line);
  border-radius: var(--r-control);
}

.form-error[hidden] {
  display: none;
}

.form-success {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ok);
  background: var(--ok-wash);
  border: 1px solid var(--ok-line);
  border-radius: var(--r-control);
}

.form-success[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .auth-head {
    padding: 0 20px;
  }

  .auth-main {
    padding: 32px 20px 56px;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .field input {
    transition: none;
  }
}
