@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500..700;1,500..700&display=swap");

/*
 * Login / forgot — light professional shell
 * Navy headings, slate italics, off-white page, white card, navy CTA
 */
body:has(.harrier-auth) {
  margin: 0;
  min-height: 100vh;
  background: #eef1f4;
}

.harrier-auth {
  --auth-navy: #142844;
  --auth-navy-mid: #1e3a5f;
  --auth-slate: #5c6d82;
  --auth-bg: #eef1f4;
  --auth-bg-elevated: #f7f8fa;
  --auth-card: #ffffff;
  --auth-input-bg: #e8ecf0;
  --auth-label: #6b7280;
  --auth-muted: #64748b;
  --auth-link: #2563eb;
  --auth-link-hover: #1d4ed8;
  --auth-border: rgba(20, 40, 68, 0.1);
  --auth-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 20px 50px -12px rgba(15, 23, 42, 0.12);
  --auth-green: #16a34a;

  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 40px) clamp(18px, 3vw, 48px);
  gap: clamp(24px, 4vw, 64px);
  background: var(--auth-bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, #ffffff 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 50%, rgba(255, 255, 255, 0.65) 0%, transparent 45%);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--auth-navy);
}

.harrier-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 40, 68, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 40, 68, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.5;
  pointer-events: none;
}

.harrier-auth::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 50% at 88% 48%, rgba(37, 99, 235, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

/* —— Flash toasts (top-right, dismissible, auto-hide) —— */
.harrier-auth__toasts {
  position: fixed;
  top: clamp(12px, 2vw, 24px);
  right: clamp(16px, 2.4vw, 36px);
  left: auto;
  transform: none;
  z-index: 50;
  width: min(380px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  pointer-events: none;
}

.harrier-auth__toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 10px 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  border: 1px solid var(--auth-border);
  background: var(--auth-card);
  color: var(--auth-navy);
  box-shadow: var(--auth-shadow);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.harrier-auth__toast--hide {
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
}

.harrier-auth__toast-text {
  flex: 1 1 auto;
  min-width: 0;
}

.harrier-auth__toast strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--auth-label);
}

.harrier-auth__toast-close {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -4px -2px -4px 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--auth-navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.harrier-auth__toast-close:hover {
  background: rgba(15, 23, 42, 0.1);
  color: var(--auth-navy-mid);
}

.harrier-auth__toast-close span {
  display: block;
  margin-top: -2px;
}

.harrier-auth__toast--danger {
  border-color: rgba(220, 38, 38, 0.28);
  background: #fff5f5;
}

.harrier-auth__toast--danger strong {
  color: #991b1b;
}

.harrier-auth__toast--success {
  border-color: rgba(22, 163, 74, 0.35);
  background: #f0fdf4;
}

.harrier-auth__toast--success strong {
  color: #166534;
}

/* —— Left column —— */
.harrier-auth__left {
  flex: 1 1 42%;
  min-width: 0;
  position: relative;
  z-index: 1;
  color: var(--auth-navy);
  display: flex;
  flex-direction: column;
  padding: clamp(4px, 0.8vw, 10px) clamp(4px, 1vw, 8px) clamp(4px, 0.8vw, 10px);
}

.harrier-auth__masthead {
  flex: 0 0 auto;
}

.harrier-auth__masthead-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.harrier-auth__masthead-brand {
  display: flex;
  align-items: center;
  line-height: 0;
}

.harrier-auth__masthead-logo {
  height: clamp(48px, 5.8vw, 84px);
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.08));
  margin-left: -35px;
}

.harrier-auth__masthead-tagline {
  margin: 0;
  padding: 0;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.harrier-auth__masthead-tagline-blue {
  color: var(--auth-navy);
}

.harrier-auth__masthead-tagline-pink {
  color: var(--auth-slate);
}

.harrier-auth__masthead-name {
  font-weight: 700;
  font-size: clamp(16px, 1.35vw, 18px);
  letter-spacing: -0.02em;
  color: var(--auth-navy);
}

.harrier-auth__masthead-sep {
  width: 1px;
  height: 18px;
  background: rgba(20, 40, 68, 0.2);
  margin: 0 2px;
}

.harrier-auth__masthead-product {
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 500;
  color: var(--auth-muted);
  letter-spacing: 0.06em;
}

.harrier-auth__leftMain {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vw, 48px) 0;
}

.harrier-auth__leftContent {
  max-width: 580px;
}

.harrier-auth__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--auth-border);
  border-radius: 999px;
  background: var(--auth-card);
  color: var(--auth-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.harrier-auth__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--auth-green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
  flex-shrink: 0;
}

.harrier-auth__headline {
  margin: 22px 0 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(40px, 4.9vw, 68px);
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", Times, serif;
  color: var(--auth-navy);
}

.harrier-auth__headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--auth-slate);
}

.harrier-auth__sub {
  margin: 0;
  color: var(--auth-navy-mid);
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 500;
  line-height: 1.6;
  max-width: 540px;
}

.harrier-auth__legal {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(100, 116, 139, 0.85);
  letter-spacing: 0.02em;
}

.harrier-auth__metrics {
  display: none;
}

/* —— Right column —— */
.harrier-auth__right {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.4vw, 32px);
  position: relative;
  z-index: 1;
}

.harrier-auth__cardGlow {
  position: absolute;
  width: min(520px, 92vw);
  height: min(480px, 72vh);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95) 0%, rgba(238, 241, 244, 0.4) 45%, transparent 70%);
  filter: blur(36px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.harrier-auth__card {
  position: relative;
  z-index: 1;
  width: min(450px, 100%);
  background: var(--auth-card);
  border-radius: 22px;
  box-shadow: var(--auth-shadow);
  padding: 36px 34px 30px;
  border: 1px solid var(--auth-border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.harrier-auth__card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 10px -2px rgba(15, 23, 42, 0.06),
    0 28px 56px -12px rgba(15, 23, 42, 0.14);
}

.harrier-auth__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--auth-label);
}

.harrier-auth__card h1 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--auth-navy);
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", Times, serif;
  line-height: 1.2;
}

.harrier-auth__card h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--auth-slate);
}

.harrier-auth__muted {
  color: var(--auth-muted);
  font-size: 14px;
  margin: 8px 0 22px;
  line-height: 1.55;
  font-weight: 400;
}

.harrier-auth__labelRow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.harrier-auth__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--auth-label);
  margin: 18px 0 8px;
  font-weight: 600;
}

.harrier-auth__label--inline {
  margin-top: 0;
}

.harrier-auth__card form > label.harrier-auth__label:first-of-type {
  margin-top: 0;
}

.harrier-auth__inputGroup {
  position: relative;
}

.harrier-auth__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-label);
  pointer-events: none;
  font-size: 15px;
}

.harrier-auth__control {
  width: 100%;
  height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 42px 10px 40px;
  font-size: 14px;
  outline: none;
  background: var(--auth-input-bg);
  color: var(--auth-navy);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.harrier-auth__control:hover {
  background: #e2e8ef;
}

.harrier-auth__control:focus {
  background: var(--auth-card);
  border-color: rgba(20, 40, 68, 0.12);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.harrier-auth__control::placeholder {
  color: rgba(100, 116, 139, 0.75);
}

/* One visibility control: hide browser-built reveal (Edge/IE + Chromium); keep .harrier-auth__toggle */
.harrier-auth__control[type="password"]::-ms-reveal,
.harrier-auth__control[type="password"]::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

.harrier-auth__control[type="password"]::-webkit-credentials-auto-fill-button {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.harrier-auth__control[type="password"]::-moz-password-reveal {
  display: none;
}

.harrier-auth__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--auth-label);
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
}

.harrier-auth__toggle:hover {
  color: var(--auth-navy);
}

.harrier-auth__row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.harrier-auth__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--auth-muted);
  font-size: 13px;
  cursor: pointer;
  margin: 0;
}

.harrier-auth__check input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--auth-navy);
  flex-shrink: 0;
}

.harrier-auth__link {
  color: var(--auth-link);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.harrier-auth__link:hover {
  color: var(--auth-link-hover);
  text-decoration: underline;
}

.harrier-auth__primaryBtn {
  margin-top: 20px;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--auth-navy);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(20, 40, 68, 0.25);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.harrier-auth__primaryBtn:hover {
  background: var(--auth-navy-mid);
  box-shadow: 0 8px 22px rgba(20, 40, 68, 0.3);
}

.harrier-auth__primaryBtn:active {
  transform: translateY(1px);
}

.harrier-auth__primaryBtn-arrow {
  margin-left: 8px;
}

.harrier-auth__footer {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--auth-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.harrier-auth__footer-lock {
  font-size: 12px;
  opacity: 0.65;
  color: var(--auth-label);
}

.harrier-auth__footer--links {
  letter-spacing: normal;
  text-transform: none;
  font-size: 14px;
  font-weight: 500;
}

.harrier-auth__footer--links .harrier-auth__footer-lock {
  display: none;
}

/* Bootstrap alerts inside auth card */
.harrier-auth .alert.icons-alert {
  text-align: left;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
  border: 1px solid rgba(234, 179, 8, 0.35);
  background: #fffbeb;
  color: var(--auth-navy);
}

.harrier-auth .alert.icons-alert .close {
  opacity: 0.5;
}

.harrier-auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px;
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.harrier-auth__divider::before,
.harrier-auth__divider::after {
  content: "";
  height: 1px;
  background: rgba(15, 23, 42, 0.1);
  flex: 1 1 auto;
}

.harrier-auth__altRow {
  display: flex;
  gap: 12px;
}

.harrier-auth__altBtn {
  flex: 1 1 50%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  font-weight: 700;
}

@media (max-width: 992px) {
  .harrier-auth {
    flex-direction: column;
    padding: clamp(14px, 3vw, 22px);
  }

  .harrier-auth__left {
    display: none;
  }

  .harrier-auth__right {
    flex: 1 1 100%;
    padding: 8px 0 20px;
  }

  .harrier-auth__cardGlow {
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .harrier-auth__card {
    transition: none;
  }

  .harrier-auth__card:hover {
    transform: none;
  }

  .harrier-auth__primaryBtn,
  .harrier-auth__control,
  .harrier-auth__link {
    transition: none;
  }
}
