/* myPortal sign-in, following the UI/UX mockup's Login page (a2b17e7, dark "navy glass" mode) and the
   Global Gate Design System. Fonts are served from this site, not Google, so the sign-in page makes no
   third-party requests. PT Sans / PT Serif: SIL Open Font License (fonts/OFL-*.txt). */

@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/PTSans-400-latin.woff2) format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/PTSans-700-latin.woff2) format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/PTSerif-700-latin.woff2) format("woff2"); }

:root {
  --navy-950: #15142A;
  --navy-900: #1D1C33;
  --navy-300: #97A7C8;
  --navy-100: #DFE2EC;
  --gold: #DEA36D;
  --gold-hover: #E4B486;
  --gold-eyebrow: #E8B987;
  --positive: #6FE0B4;
  --white: #FFFFFF;
  --text: rgba(255, 255, 255, .84);
  --muted: rgba(255, 255, 255, .68);
  --glass: rgba(255, 255, 255, .07);
  --glass-line: rgba(255, 255, 255, .13);
  --sans: "PT Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background: var(--navy-950);
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: lining-nums tabular-nums;
}

/* Full-bleed dusk skyline, darkened top to bottom as in the mockup */
.photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(29, 28, 51, .80) 0%, rgba(29, 28, 51, .70) 50%, rgba(21, 20, 42, .95) 100%),
    url(/static/skyline-dusk.jpg) center / cover no-repeat;
}

/* Header: wordmark top left, test-environment badge top right */
.top {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 24px max(20px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; flex-direction: column; gap: 6px; }
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--white);
}
.wordmark .my { color: var(--gold); }
.firm { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--navy-300); }
.env-badge {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy-100);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 4px 12px;
}

.wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px max(16px, env(safe-area-inset-right)) 64px max(16px, env(safe-area-inset-left));
}

/* Navy glass card */
.card {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .6);
  transition: box-shadow 300ms var(--ease);
  animation: fade-up 500ms var(--ease) both;
}
@media (hover: hover) {
  .card:hover { box-shadow: 0 0 0 1px rgba(222, 163, 109, .3), 0 0 56px -8px rgba(222, 163, 109, .55), 0 24px 48px -28px rgba(0, 0, 0, .6); }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.card > * { margin: 0; }

.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-eyebrow); }
h1 { margin-top: 8px !important; font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
.lead { margin-top: 8px !important; font-size: 15px; color: var(--muted); }
.lead .who { color: var(--text); word-break: break-all; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  width: 100%;
  margin-top: 28px !important;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.btn-primary { background: var(--gold); color: var(--navy-900); }
.btn-outline { border: 1px solid rgba(255, 255, 255, .3); color: var(--white); }
.btn-primary:active { background: var(--gold-hover); }
.btn-outline:active { border-color: var(--gold); color: var(--gold); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--gold-hover); }
  .btn-outline:hover { border-color: var(--gold); color: var(--gold); }
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px !important; font-size: 12px; line-height: 1.6; color: var(--muted); }
.note svg { flex: none; margin-top: 2px; }

.help { margin-top: 20px !important; padding-top: 16px; border-top: 1px solid var(--glass-line); font-size: 13px; color: var(--muted); }
.help b { color: var(--text); }

.notice { margin-top: 16px !important; font-size: 13px; border-radius: 12px; padding: 9px 12px; }
.notice-info { color: var(--navy-100); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); }
.notice-error { color: #FF9C9C; background: rgba(178, 58, 72, .14); border: 1px solid rgba(255, 156, 156, .3); }

.safety {
  display: flex;
  gap: 12px;
  margin-top: 24px !important;
  padding: 14px;
  border-radius: 12px;
  background: var(--glass);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.safety svg { flex: none; margin-top: 1px; color: var(--positive); }
.safety p { margin: 0; }
.safety b { color: var(--text); }

.offices {
  position: relative;
  z-index: 1;
  padding: 0 24px max(24px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 11px;
  line-height: 1.7;
  color: var(--navy-300);
  text-wrap: balance;
}

@media (min-width: 640px) {
  .top { padding-left: 32px; padding-right: 32px; }
  .card { padding: 36px; }
}

/* Very narrow phones: the badge drops below the wordmark */
@media (max-width: 380px) {
  .top { flex-direction: column; align-items: flex-start; }
}

/* Phones held sideways: compact header and card, so the button stays on screen */
@media (max-height: 500px) and (orientation: landscape) {
  .top { padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 6px; }
  .wordmark { font-size: 22px; }
  .wrap { padding-bottom: 12px; }
  .card { max-width: 520px; padding: 18px 22px; }
  h1 { font-size: 24px; margin-top: 4px !important; }
  .lead { font-size: 13px; }
  .btn { min-height: 44px; margin-top: 14px !important; }
  .help { margin-top: 10px !important; padding-top: 8px; }
  .safety, .offices { display: none; }
}

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