:root {
  --obsidian: #07142e;
  --navy: #0d1d3f;
  --cobalt: #2f5bde;
  --blue: #5678ee;
  --platinum: #d9e0ef;
  --pearl: #f7f8fc;
  --steel: #66718a;
  --white: #fff;
  --danger: #c95055;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--obsidian); background: var(--white); font-family: Inter, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 18px; top: -90px; z-index: 20; padding: 12px 18px; background: var(--white); color: var(--obsidian); transition: top .2s; }
.skip-link:focus { top: 18px; }

.login-shell { display: grid; grid-template-columns: minmax(500px, .92fr) minmax(580px, 1.08fr); min-height: 100svh; }
.brand-panel { position: relative; min-height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(28px, 4vw, 58px); background: var(--obsidian); color: var(--white); }
.brand-art { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,20,46,.88) 0%, rgba(7,20,46,.58) 42%, rgba(7,20,46,.82) 100%), url('fivatech-brand-art.png') center/cover no-repeat; opacity: .85; }
.brand-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.38) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.38) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(135deg, transparent 4%, black 52%, transparent 100%); }
.brand-panel::after { content: ""; position: absolute; width: 62%; height: 68%; right: -39%; top: 10%; border: 1px solid rgba(143,166,245,.3); transform: skewX(-22deg); }
.brand-home, .brand-message, .product-window, .brand-sequence { position: relative; z-index: 2; }
.brand-home { width: 174px; }
.brand-home img { width: 100%; }
.brand-message { align-self: end; max-width: 660px; padding: 56px 0 28px; }
.eyebrow { margin: 0 0 18px; color: var(--cobalt); font-family: Manrope, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.brand-message .eyebrow { color: #9db1f7; }
.brand-message h1 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(3rem, 4.3vw, 5.3rem); font-weight: 600; line-height: .98; letter-spacing: -.06em; }
.brand-message h1 em { color: #9db1f7; font-family: 'Source Serif 4', serif; font-weight: 400; }
.brand-message > p:last-child { max-width: 610px; margin: 26px 0 0; color: #b8c3d7; font-size: 1.02rem; line-height: 1.75; }

.product-window { width: min(700px, 94%); margin: 10px 0 26px auto; padding: 22px; background: rgba(248,250,253,.98); color: var(--obsidian); border: 1px solid rgba(255,255,255,.5); box-shadow: 0 34px 72px rgba(0,7,20,.45); }
.product-topbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #e0e5ee; }
.product-topbar > div { display: grid; gap: 2px; }
.product-topbar span { color: #7b879c; font-size: .54rem; letter-spacing: .11em; }
.product-topbar strong, .metric-row strong, .decision-row strong { font-family: Manrope, sans-serif; }
.product-topbar strong { font-size: .82rem; }
.period { padding: 6px 9px; border: 1px solid #dce2ec; }
.signal-row { display: flex; align-items: center; gap: 9px; margin: 14px 0; padding: 10px 12px; background: #fff8ec; border-left: 3px solid #d9932e; }
.signal-row > span { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #d9932e; }
.signal-row p { margin: 0; font-size: .59rem; }
.metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.metric-row article { display: grid; gap: 4px; padding: 12px; background: var(--white); border: 1px solid #e2e7f0; }
.metric-row article > span { color: #7d889b; font-size: .52rem; }
.metric-row strong { font-size: .92rem; }
.metric-row small { color: #198a63; font-size: .48rem; }
.metric-row article:last-child small { color: #aa6d1e; }
.decision-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; align-items: center; margin-top: 9px; padding: 14px; background: var(--white); border: 1px solid #e2e7f0; }
.mini-chart { height: 68px; display: flex; align-items: end; gap: 6px; padding-bottom: 5px; border-bottom: 1px solid #dbe1eb; }
.mini-chart span { flex: 1; height: var(--h); background: #c9d4f1; }
.mini-chart span:nth-child(n+4) { background: var(--cobalt); }
.decision-row > div:last-child { display: grid; gap: 7px; }
.decision-row > div:last-child span { color: #7f8a9e; font-size: .49rem; letter-spacing: .08em; }
.decision-row strong { font-size: .76rem; line-height: 1.4; }
.brand-sequence { display: flex; gap: 0; align-items: center; border-top: 1px solid rgba(255,255,255,.16); }
.brand-sequence span { flex: 1; padding-top: 18px; color: #9da9bd; font-size: .65rem; }
.brand-sequence span + span { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.14); }
.brand-sequence b { margin-right: 8px; color: #8fa7f3; font-family: Manrope, sans-serif; font-size: .58rem; letter-spacing: .1em; }

.access-panel { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 74px clamp(30px, 7vw, 110px) 52px; background: var(--white); }
.help-link { position: absolute; top: 34px; right: clamp(30px, 4.5vw, 72px); color: var(--steel); font-size: .8rem; }
.help-link strong { color: var(--cobalt); font-weight: 600; }
.access-card { width: min(100%, 500px); }
.access-logo { display: block; width: 178px; margin: 0 auto 38px; }
.access-logo img { width: 100%; }
.access-heading { margin-bottom: 34px; text-align: center; }
.access-heading .eyebrow { margin-bottom: 10px; }
.access-heading h2 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 600; letter-spacing: -.045em; }
.access-heading > p:last-child { margin: 10px 0 0; color: var(--steel); font-size: .96rem; }
.login-form { display: grid; gap: 21px; }
.field { display: grid; gap: 8px; }
.field label, .label-row { font-size: .84rem; font-weight: 600; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.label-row a { color: var(--cobalt); font-size: .73rem; font-weight: 500; }
.field input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid #cfd7e5; border-radius: 7px; background: var(--white); color: var(--obsidian); outline: 0; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: #9aa6ba; }
.field input:focus { border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(47,91,222,.1); }
.field.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(201,80,85,.08); }
.field-error { display: none; color: var(--danger); font-size: .72rem; }
.field.is-invalid .field-error { display: block; }
.password-control { position: relative; }
.password-control input { padding-right: 52px; }
.password-toggle { position: absolute; top: 50%; right: 9px; width: 38px; height: 38px; display: grid; place-items: center; transform: translateY(-50%); border: 0; background: transparent; color: var(--steel); }
.password-toggle svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.remember { display: flex; align-items: center; gap: 9px; width: fit-content; color: var(--steel); font-size: .78rem; cursor: pointer; }
.remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--cobalt); }
.primary-button, .secondary-button { width: 100%; min-height: 54px; border-radius: 7px; font-family: Manrope, sans-serif; font-weight: 700; transition: transform .22s var(--ease), background .22s, border-color .22s; }
.primary-button { border: 1px solid var(--cobalt); background: var(--cobalt); color: var(--white); box-shadow: 0 14px 28px rgba(47,91,222,.2); }
.primary-button:hover { background: #416ae2; transform: translateY(-1px); }
.secondary-button { display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #cfd7e5; background: var(--white); color: var(--obsidian); }
.secondary-button:hover { border-color: #9eabc0; transform: translateY(-1px); }
.google-mark { font-family: Arial, sans-serif; font-size: 1.25rem; font-weight: 700; background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 40%, #fbbc05 0 66%, #ea4335 0 84%, #4285f4 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.divider { display: flex; align-items: center; gap: 14px; margin: 25px 0; color: #8c98ab; font-size: .7rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #dce2ec; }
.form-feedback { min-height: 0; margin: -7px 0 0; color: var(--steel); font-size: .74rem; text-align: center; }
.form-feedback:not(:empty) { min-height: 20px; }
.register-copy { margin: 28px 0 0; color: var(--steel); font-size: .8rem; text-align: center; }
.register-copy a { color: var(--cobalt); font-weight: 600; }
.access-footer { position: absolute; bottom: 24px; left: 20px; right: 20px; margin: 0; color: #9aa5b6; font-size: .66rem; text-align: center; }

button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(86,120,238,.48); outline-offset: 3px; }

@media (max-width: 1040px) {
  .login-shell { grid-template-columns: minmax(420px, .8fr) minmax(520px, 1.2fr); }
  .brand-panel { padding: 34px; }
  .brand-message h1 { font-size: clamp(3rem, 5.3vw, 4.2rem); }
  .product-window { width: 100%; }
  .metric-row article:last-child { display: none; }
  .metric-row { grid-template-columns: repeat(2,1fr); }
}

@media (min-width: 821px) and (max-height: 820px) {
  .brand-panel { padding: 26px 40px; }
  .brand-home { width: 148px; }
  .brand-message { padding: 22px 0 12px; }
  .brand-message h1 { font-size: clamp(2.9rem, 4.1vw, 3.45rem); }
  .brand-message > p:last-child { margin-top: 14px; line-height: 1.5; }
  .product-window { margin: 4px 0 12px auto; padding: 14px; }
  .product-topbar { padding-bottom: 8px; }
  .signal-row { margin: 8px 0; padding: 7px 10px; }
  .metric-row article { padding: 8px 10px; }
  .decision-row { margin-top: 7px; padding: 8px 10px; }
  .mini-chart { height: 42px; }
  .brand-sequence span { padding-top: 10px; }

  .access-panel { padding-top: 46px; padding-bottom: 34px; }
  .help-link { top: 20px; }
  .access-logo { width: 150px; margin-bottom: 18px; }
  .access-heading { margin-bottom: 20px; }
  .access-heading .eyebrow { margin-bottom: 6px; }
  .access-heading h2 { font-size: 2.1rem; }
  .access-heading > p:last-child { margin-top: 6px; }
  .login-form { gap: 12px; }
  .field { gap: 5px; }
  .field input { height: 48px; }
  .primary-button, .secondary-button { min-height: 48px; }
  .divider { margin: 14px 0; }
  .register-copy { margin-top: 14px; }
  .access-footer { bottom: 8px; }
}

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 330px; display: block; padding: 28px 24px 34px; }
  .brand-home { width: 145px; }
  .brand-message { max-width: 570px; padding: 58px 0 0; }
  .brand-message h1 { font-size: clamp(2.8rem, 10vw, 4.1rem); }
  .brand-message > p:last-child { margin-top: 17px; }
  .product-window, .brand-sequence { display: none; }
  .access-panel { min-height: auto; padding: 92px 24px 82px; }
  .help-link { top: 27px; right: 24px; }
  .access-footer { position: static; margin-top: 48px; }
}

@media (max-width: 480px) {
  .brand-panel { min-height: 300px; }
  .brand-message h1 { font-size: 2.75rem; }
  .brand-message > p:last-child { font-size: .9rem; }
  .access-panel { padding-inline: 18px; }
  .access-logo { width: 158px; margin-bottom: 31px; }
  .label-row { align-items: flex-start; }
}

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