@font-face {
  font-family: "IBM Plex Sans";
  src: url("ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080909;
  --panel: rgba(20, 20, 21, .9);
  --text: #f5f1ec;
  --muted: #aaa39e;
  --gold: #b38b4c;
  --wine: #821c1f;
  --wine-light: #a5252a;
  --line: rgba(255, 255, 255, .13);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(8, 9, 9, .98) 0%, rgba(8, 9, 9, .87) 48%, rgba(8, 9, 9, .22) 100%),
    url("herrex-hero.svg") center right / cover fixed no-repeat,
    var(--bg);
}
a { color: inherit; }
button, input { font: inherit; }
.skip-link { position: fixed; top: -80px; left: 24px; z-index: 10; padding: 12px 18px; background: white; color: #111; }
.skip-link:focus { top: 20px; }
.portal-shell { width: min(1440px, calc(100% - 96px)); min-height: 100vh; margin: 0 auto; display: grid; grid-template-rows: auto 1fr auto; }
.portal-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.portal-header img { display: block; width: 118px; height: auto; }
.portal-header > span { color: #b8b0aa; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.portal-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 470px); gap: clamp(64px, 8vw, 150px); align-items: center; padding: 70px 0; }
.portal-intro { max-width: 760px; }
.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 25px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 38px; height: 1px; background: var(--gold); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 34px; font-size: clamp(50px, 6.4vw, 92px); line-height: .96; letter-spacing: -.055em; }
h1 span { color: #d8d2cd; font-weight: 300; }
.lead { max-width: 650px; margin-bottom: 30px; color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; }
.portal-intro ul { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; color: #c6bfb9; font-size: 13px; }
.portal-intro li::before { content: "·"; margin-right: 11px; color: var(--gold); }
.login-card { position: relative; padding: 46px 44px 42px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 35px 100px rgba(0, 0, 0, .4); backdrop-filter: blur(16px); }
.login-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--wine); }
.card-number { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.login-card h2 { margin: 13px 0 14px; font-size: clamp(30px, 3vw, 43px); letter-spacing: -.035em; }
.login-card > p { margin-bottom: 30px; color: var(--muted); line-height: 1.55; }
label { display: block; margin-bottom: 10px; color: #d9d3ce; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.password-row { display: grid; grid-template-columns: 1fr auto; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .28); transition: border-color .2s, box-shadow .2s; }
.password-row:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(179, 139, 76, .15); }
input { min-width: 0; height: 56px; padding: 0 17px; border: 0; outline: 0; color: white; background: transparent; }
.toggle-password { padding: 0 15px; border: 0; color: #bdb6b0; background: transparent; cursor: pointer; font-size: 12px; }
.toggle-password:hover { color: white; }
.form-error { margin: 12px 0 0; color: #ffb5b8; font-size: 13px; }
.submit-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 58px; margin-top: 20px; padding: 0 23px; border: 0; background: var(--wine); color: white; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
form .submit-button { width: 100%; }
.submit-button:hover { background: var(--wine-light); transform: translateY(-2px); }
.submit-button:focus-visible, .toggle-password:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.login-card .support { margin: 25px 0 0; font-size: 12px; }
.support a { color: #e4ddd7; text-underline-offset: 3px; }
footer { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: #8d8782; font-size: 11px; letter-spacing: .08em; }
.simple-page { display: grid; place-items: center; padding: 30px; }
.simple-page main { width: min(720px, 100%); }
.simple-page img { width: 120px; margin-bottom: 70px; }
.simple-page h1 { font-size: clamp(40px, 7vw, 80px); }

@media (max-width: 980px) {
  .portal-shell { width: min(100% - 56px, 820px); }
  .portal-content { grid-template-columns: 1fr; gap: 55px; padding: 65px 0 80px; }
  .portal-intro { max-width: 700px; }
  .login-card { width: min(100%, 560px); }
}

@media (max-width: 600px) {
  body { background-position: 62% center; }
  .portal-shell { width: calc(100% - 32px); }
  .portal-header { min-height: 88px; }
  .portal-header img { width: 96px; }
  .portal-header > span { font-size: 9px; letter-spacing: .12em; }
  .portal-content { padding: 52px 0 60px; gap: 43px; }
  h1 { margin-bottom: 26px; font-size: clamp(43px, 13vw, 64px); }
  .portal-intro ul { display: grid; gap: 10px; }
  .login-card { padding: 39px 24px 30px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 24px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
