/*
  Brand tokens echoed from the live dmbyachting.com register page
  (site/register.html + site/styles.css + site/siteflow-v3.css), not
  invented. Two things in the build brief didn't match what's actually
  shipping on that page and PLAN.md flags both:
    - copper was briefed as #F0451B/#FF5E2E; the page that's actually live
      paints with #E07A52 / #C9461C (buttons use sitewide --gold #E04F22).
    - buttons were briefed as "pill"; the live .btn is a sharp 2px-radius,
      uppercase, letter-spaced button — there is no pill radius anywhere
      in styles.css or siteflow-v3.css.
  This file follows the live page. See PLAN.md "Design source conflicts".
*/

:root {
  color-scheme: dark;

  --navy-deep: #03040a;
  --navy-panel-from: rgba(12, 18, 27, 0.97);
  --navy-panel-to: rgba(10, 15, 22, 0.97);

  --copper: #e07a52;
  --copper-strong: #c9461c;
  --gold: #e04f22;
  --icon-copper: #e08a4c;
  --icon-copper-bg: rgba(255, 94, 46, 0.1);
  --icon-copper-border: rgba(255, 94, 46, 0.28);

  --ink: #f4f1ea;
  --muted: #8f9aaa;
  --white: #ffffff;

  --line: rgba(255, 255, 255, 0.2);
  --line-soft: rgba(255, 255, 255, 0.12);
  --line-hairline: rgba(255, 255, 255, 0.06);

  --danger: #ff6b5e;
  --ok: #7fd8a4;

  /* No third-party font loads (see SECURITY.md): neither "Spectral" nor
     "Plus Jakarta Sans" is self-hosted (no usable local files for the
     weights actually used — see SECURITY.md/PLAN.md), so both names are
     left in as a harmless no-network progressive enhancement (in case a
     visitor already has either installed locally) ahead of the real
     fallback stack that every visitor actually renders with. */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--navy-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--copper);
}

a:hover {
  color: var(--gold);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--white);
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, var(--navy-panel-from), var(--navy-panel-to));
  border: 1px solid var(--line-soft);
  border-top: 1px solid var(--copper);
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  padding: 40px 36px;
}

@media (max-width: 480px) {
  .card {
    padding: 32px 22px;
  }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-strong);
  margin-bottom: 10px;
}

.lede {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin: 0 0 28px;
}

.sphere {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--icon-copper-bg);
  border: 1px solid var(--icon-copper-border);
  margin-bottom: 20px;
  overflow: hidden;
}

.sphere img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  transition: opacity 220ms ease;
}

.sphere img.lit {
  opacity: 0;
}

.sphere:hover img.lit {
  opacity: 1;
}

.sphere:hover img.rest {
  opacity: 0;
}

/* Portal identity mark: Tank's rendered crew-identity sphere (rest / lit on
   hover), shown consistently on every page above the per-page contextual
   sphere. Also doubles as the source for the favicon/app icons (see
   public/assets/icons/ and site.webmanifest). */
.identity-mark {
  position: relative;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
}

.identity-mark img {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  transition: opacity 220ms ease;
}

.identity-mark img.lit {
  opacity: 0;
}

.identity-mark:hover img.lit {
  opacity: 1;
}

.identity-mark:hover img.rest {
  opacity: 0;
}

.form-group {
  margin-bottom: 22px;
}

label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color var(--transition);
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.field-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.field-error.visible {
  display: block;
}

.toggle-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.toggle-option {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  transition: all var(--transition);
}

.toggle-option:hover {
  border-color: rgba(224, 122, 82, 0.5);
  color: var(--white);
}

.toggle-option input {
  display: none;
}

.toggle-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(224, 79, 34, 0.08);
  color: var(--gold);
}

.checklist {
  border: 1px solid var(--line-hairline);
  border-radius: 2px;
  padding: 18px 20px;
  margin: 0 0 24px;
  background: rgba(255, 255, 255, 0.02);
}

.checklist-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 10px;
}

.checklist ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.checklist li {
  margin-bottom: 4px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin: 24px 0;
}

.consent input {
  margin-top: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 17px 32px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-primary:hover:not(:disabled) {
  background: transparent;
  color: var(--gold);
  transform: translateY(-1px);
}

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

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 16px;
}

.form-note a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

.status-banner {
  border-radius: 2px;
  padding: 16px 18px;
  font-size: 14px;
  margin-bottom: 22px;
  display: none;
}

.status-banner.visible {
  display: block;
}

.status-banner.success {
  background: rgba(127, 216, 164, 0.1);
  border: 1px solid rgba(127, 216, 164, 0.35);
  color: var(--ok);
}

.status-banner.error {
  background: rgba(255, 107, 94, 0.1);
  border: 1px solid rgba(255, 107, 94, 0.35);
  color: var(--danger);
}

.privacy-line {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 24px;
  text-align: center;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
