/* ============================================================
   dawsonbrownsoffice2.com — gate + app
   Built on the Scenic Advisement design system (tokens 2026-07-14).
   ============================================================ */

/* GT Super Display (Grilli Type) — served from Scenic's Webflow CDN. */
@font-face {
  font-family: 'GT Super Display';
  src: url('https://cdn.prod.website-files.com/6849e24182734870448d91bf/6849e24182734870448d91e5_GT-Super-Display-Medium-Trial.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GT Super Display';
  src: url('https://cdn.prod.website-files.com/6849e24182734870448d91bf/6849e24182734870448d91e2_GT-Super-Display-Regular-Trial.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* Color */
  --ink: #010101;
  --white: #ffffff;
  --mist: #e6e3e6;
  --field: #f4f4f4;
  --slate: #5d6c7b;
  --glow: 0 0 20px rgba(147, 147, 147, 0.5);

  /* Iridescent layer — washes/lines only; deeps for small text */
  --deep-peri: #55558f;
  --deep-sky: #46648b;
  --wave-line: linear-gradient(90deg, #F0BFAE, #F2B1DA, #CCB5D9, #B9B9E0, #A8CBE8, #A9DCC6);
  --wave-wash: linear-gradient(100deg, #dff3ff 0%, #ffd9ec 20%, #d3f6ff 38%, #eadcff 56%, #ffe9f3 74%, #d9fbff 90%, #fff 100%);

  /* Type */
  --font-heading: 'GT Super Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shape */
  --radius-card: 10px;
  --radius-panel: 20px;
  --radius-pill-lg: 50px;

  /* Motion */
  --transition: all 0.35s;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  /* Swirl texture under a white veil — the sign-in card floats on it
     (design package: swirls are page backgrounds only). */
  background-color: var(--white);
  background-image: linear-gradient(rgba(255,255,255,.75), rgba(255,255,255,.75)), url('/assets/swirl-b.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 150%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  margin: 0;
  text-transform: capitalize;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   Gate (login)
   ============================================================ */
.gate {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 24px;
  background: radial-gradient(circle at 50% 0%, var(--mist) 0%, var(--white) 62%);
}

.card {
  width: 100%;
  max-width: 452px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--radius-panel);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(1,1,1,0.04), 0 34px 80px -44px rgba(1,1,1,0.30);
}

/* The one wave moment: the masthead band */
.masthead {
  background: var(--wave-wash);
  padding: 40px 44px 34px;
  text-align: center;
  border-bottom: 1px solid rgba(1,1,1,0.06);
}
.masthead .bolt {
  height: 46px;
  width: auto;
  display: inline-block;
}

.card-body {
  padding: 30px 44px 40px;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  line-height: 120%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-peri);
  margin: 0 0 12px;
}

.card-body h1 {
  font-size: 31px;
  line-height: 118%;
  margin: 0 0 10px;
}

.lead {
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  color: #6f6f6f;
  margin: 0 0 26px;
}

/* Scenic form field: quiet gray, wakes to white+ink on focus */
.field { display: block; text-align: left; margin-bottom: 16px; }
.field-label {
  display: block;
  text-transform: uppercase;
  font: 600 12px/120% var(--font-body);
  letter-spacing: 0.09em;
  color: #6f6f6f;
  margin-bottom: 10px;
}
.text-field {
  height: 62px;
  width: 100%;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--field);
  border-radius: var(--radius-card);
  padding: 0 20px;
  font-size: 17px;
  font-family: var(--font-body);
  transition: var(--transition);
}
.text-field::placeholder { color: #9a9a9a; }
.text-field:focus {
  background: #fff;
  border-color: var(--ink);
  outline: none;
}

/* Password field with the view toggle */
.pw-wrap { position: relative; }
.pw-wrap .text-field { padding-right: 52px; }
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #9a9a9a;
  cursor: pointer;
  transition: var(--transition);
}
.pw-toggle:hover { color: var(--ink); }

/* Remember-me row */
.row-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  margin: 2px 0 22px;
}
.row-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
  cursor: pointer;
  margin: 0;
  flex: none;
}
.row-remember label {
  font-size: 14px;
  color: #4a4a4a;
  cursor: pointer;
  user-select: none;
}

/* Submit pill — full width, inverts on hover */
.btn-submit {
  width: 100%;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-pill-lg);
  padding: 19px 40px;
  font: 600 17px/120% var(--font-body);
  text-transform: capitalize;
  cursor: pointer;
  transition: var(--transition);
}
.btn-submit:hover:not(:disabled) {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: var(--glow);
}
.btn-submit:disabled { opacity: 0.6; cursor: default; }
.btn-submit svg { transition: transform var(--transition); }
.btn-submit:hover:not(:disabled) svg { transform: translateX(3px); }

/* Touch ID button — secondary pill, ink outline */
.btn-passkey {
  width: 100%;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-pill-lg);
  padding: 17px 32px;
  font: 600 16px/120% var(--font-body);
  text-transform: capitalize;
  cursor: pointer;
  transition: var(--transition);
}
.btn-passkey:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--glow);
}
.btn-passkey:disabled { opacity: 0.6; cursor: default; }
.btn-passkey svg { flex: none; }

/* "or" divider between Touch ID and the password form */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: #9a9a9a;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ececec;
}

.spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.btn-submit.loading .label { opacity: 0.7; }
.btn-submit.loading .arrow { display: none; }
.btn-submit.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.error {
  min-height: 20px;
  margin: 16px 0 0;
  font-size: 13.5px;
  color: #9c543f; /* deep-peach — a quiet, on-brand alert */
}

.footer {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #9a9a9a;
}

/* ============================================================
   App (behind the gate)
   ============================================================ */
.app { min-height: 100%; display: flex; flex-direction: column; }

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--wave-line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .bolt { height: 26px; width: auto; }
.brand .name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  text-transform: capitalize;
}

.nav-pill {
  display: inline-block;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: 40px;
  padding: 9px 18px;
  font: 500 15px/110% var(--font-body);
  cursor: pointer;
  transition: var(--transition);
}
.nav-pill:hover { background: var(--ink); color: #fff; }

.content { flex: 1; display: grid; place-items: center; padding: 56px 24px; }
.panel { max-width: 620px; text-align: center; }
.panel .badge {
  display: inline-block;
  padding: 5px 13px;
  font: 600 11.5px/120% var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-sky);
  border: 1px solid #e3e6eb;
  border-radius: 999px;
  margin-bottom: 20px;
}
.panel h1 { font-size: 44px; line-height: 112%; margin: 0 0 16px; }
.panel p {
  font-weight: 300;
  color: #4a4a4a;
  font-size: 19px;
  line-height: 150%;
  margin: 0 auto;
  max-width: 500px;
}
.btn-enter-os {
  max-width: 360px;
  margin: 34px auto 0;
  text-decoration: none;
  box-sizing: border-box;
}
.enroll { margin: 22px auto 0; max-width: 340px; }
.enroll-msg { min-height: 18px; margin: 12px 0 0; font-size: 13.5px; }
.enroll-msg.ok { color: #3e7360; }   /* deep-mint */
.enroll-msg.err { color: #9c543f; }  /* deep-peach */

@media (max-width: 520px) {
  .masthead { padding: 32px 28px 28px; }
  .card-body { padding: 26px 28px 32px; }
  .topbar { padding: 18px 22px; }
  .panel h1 { font-size: 34px; }
}
