/* HarbourX — shared styles for register / password setup / password change

   One palette, and it is dark: the product these pages lead into — the
   dashboard, statements, identity and support — has only ever been dark, so
   the way in matches it rather than flipping the lights on first. */
:root {
  color-scheme: dark;
  --navy: #0b2545;
  --teal-600: #0e938e;
  --teal-500: #14b8ad;
  --ink: #f1f6f8;
  --text: #c4d2dc;
  --muted: #93a5b2;
  --faint: #6d7f8c;
  --line: #223442;
  --panel: #0f1d2b;
  --field-bg: #0e1c29;
  --field-bd: #2b4150;
  --soft: #0e1b28;
  --green: #12a150;
  --red: #e0424b;
  --page-bg: #070f18;
  --glow-1: rgba(30,200,187,.14);
  --glow-2: rgba(20,50,88,.30);
  --card-sh: 0 30px 80px -30px rgba(0,0,0,.7);
  --btn-bg: linear-gradient(135deg, #14c4b7, #0e938e);
  --btn-bg-hover: linear-gradient(135deg, #1ad4c6, #11a89c);
  --btn-fg: #04211f;
  --btn-sh: 0 14px 34px -8px rgba(20,200,187,.5);
  --ring: 0 0 0 4px rgba(20,184,173,.18);
  --ease: 220ms cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--hx-font, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(680px 460px at 12% 4%, var(--glow-1), transparent 60%),
    radial-gradient(620px 520px at 100% 100%, var(--glow-2), transparent 58%),
    var(--page-bg);
  transition: background-color .35s ease, color .35s ease;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 28px;
  box-shadow: var(--card-sh);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.brand { text-align: center; margin-bottom: 22px; }
.badge {
  width: 52px; height: 52px;
  border-radius: 16px;
  margin: 0 auto;
  display: grid; place-items: center;
  color: #eafffb;
  background: linear-gradient(135deg, #10365f, #14b8ad);
  box-shadow: 0 12px 28px rgba(14,147,142,.30), inset 0 1px 0 rgba(255,255,255,.24);
}
.badge svg { width: 26px; height: 26px; }
.brand h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin: 15px 0 5px; }
.brand p { font-size: 13px; color: var(--muted); margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 7px; color: var(--muted); }
.field input, .field select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--field-bd);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  font-size: 14.5px;
  background: var(--field-bg);
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.field input::placeholder { color: var(--faint); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: var(--ring);
  background: var(--panel);
}

.btn {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 13px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
  box-shadow: var(--btn-sh);
}
.btn:hover { transform: translateY(-1px); background: var(--btn-bg-hover); box-shadow: 0 16px 32px rgba(11,37,69,.28); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  font-size: 13px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.notice::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.success { background: rgba(18,161,80,.14); color: #7ee0a6; border: 1px solid rgba(18,161,80,.32); }
.error   { background: rgba(224,66,75,.14); color: #ff9ea3; border: 1px solid rgba(224,66,75,.32); }

.hint { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }

.email-box {
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 13px;
  margin-bottom: 14px;
  color: var(--muted);
  word-break: break-word;
}
.email-box b { color: var(--ink); }

.link {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: #33d6c8;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
}
.link:hover { text-decoration: underline; }

.btn:active { transform: translateY(0) scale(.98); }

/* ---------------------------------------------------------------- motion
   Keyframes, durations and easings come from hx-motion.css; what stays here is
   the choreography — the card arrives, then its contents settle behind it. */

.card { animation: hx-scale-in var(--hx-dur-slower) var(--hx-ease-spring) backwards 40ms; }
.card .brand { animation: hx-rise var(--hx-dur-slow) var(--hx-ease-out) backwards 120ms; }
.card form,
.card .email-box { animation: hx-rise var(--hx-dur-slow) var(--hx-ease-out) backwards 200ms; }

/* Controls acknowledge the pointer before the form does anything. */
.field input,
.field select {
  transition:
    border-color var(--hx-dur-fast) var(--hx-ease-out),
    box-shadow var(--hx-dur-fast) var(--hx-ease-out),
    background-color var(--hx-dur-fast) var(--hx-ease-out);
}
.btn {
  position: relative;
  overflow: hidden;
  transition:
    filter var(--hx-dur-fast) var(--hx-ease-out),
    transform var(--hx-dur-instant) var(--hx-ease-out),
    box-shadow var(--hx-dur-base) var(--hx-ease-out);
}
.notice,
.error,
.success { animation: hx-rise var(--hx-dur-base) var(--hx-ease-out); }

@media (prefers-reduced-motion: reduce) {
  .card,
  .card .brand,
  .card form,
  .card .email-box,
  .notice,
  .error,
  .success { animation: none; }
  .btn:active { transform: none; }
}

@media (max-width: 520px) {
  .card { padding: 26px 20px; }
  .grid-2 { grid-template-columns: 1fr; }
}
