:root {
  --navy: #062b62;
  --navy-deep: #031f49;
  --navy-mid: #0b3978;
  --blue: #0b66d4;
  --red: #ee2530;
  --yellow: #ffd33e;
  --ink: #092a60;
  --muted: #687995;
  --line: #d6dfeb;
  --white: #ffffff;
  --panel-left: #f3f7fd;
}

/* Approved rotating FinchLabs accent introduced in v1.0.3. */
@property --glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--navy-deep); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
    radial-gradient(circle at 105% 110%, rgba(238,37,48,.18), transparent 34rem),
    linear-gradient(145deg, #0b3b7d 0%, #062b62 52%, #071e49 100%);
  background-size: 40px 40px, 40px 40px, auto, auto;
}
button, input { font: inherit; }
button { cursor: pointer; }

.page-shell {
  width: min(1180px, calc(100% - 20px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(110px, 18vh, 165px) 0 28px;
  display: flex;
  flex-direction: column;
}

.login-panel {
  display: grid;
  grid-template-columns: 56% 44%;
  min-height: 760px;
  overflow: hidden;
  --glow-angle: 0deg;
  border: 2px solid transparent;
  border-radius: 36px;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    conic-gradient(
      from var(--glow-angle),
      rgba(255,255,255,.36) 0deg 224deg,
      rgba(11,102,212,.46) 232deg,
      rgba(11,102,212,1) 248deg,
      rgba(255,211,62,1) 268deg,
      rgba(238,37,48,1) 288deg,
      rgba(255,255,255,.40) 306deg 360deg
    ) border-box;
  box-shadow:
    0 32px 80px rgba(0, 15, 49, .34),
    0 0 18px rgba(11,102,212,.14),
    0 0 38px rgba(255,211,62,.07);
  animation: finchGlowOrbit 6.5s linear infinite;
}

@keyframes finchGlowOrbit {
  to { --glow-angle: 360deg; }
}

.brand-column {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 42px 62px 58px;
  text-align: center;
  background:
    radial-gradient(circle at -4% 3%, transparent 0 105px, rgba(11,102,212,.07) 106px 150px, transparent 151px),
    radial-gradient(circle at 110% 105%, transparent 0 120px, rgba(238,37,48,.055) 121px 165px, transparent 166px),
    linear-gradient(145deg, #ffffff 0%, #f0f5fd 100%);
}

.brand-logo {
  width: min(510px, 88%);
  height: auto;
  display: block;
  margin-bottom: 28px;
  border-radius: 30px;
  box-shadow: 0 24px 65px rgba(8, 43, 94, .08);
}

.brand-copy { width: 100%; }
.eyebrow,
.form-kicker {
  margin: 0 0 10px;
  font-size: .78rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow { color: var(--red); }
.form-kicker { color: var(--yellow); }

h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  color: var(--navy-deep);
  font-size: clamp(2.7rem, 4.2vw, 4.25rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.tagline {
  max-width: 500px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.6;
}

.form-column {
  position: relative;
  display: flex;
  align-items: center;
  padding: 74px 60px;
  color: #fff;
  background:
    radial-gradient(circle at 108% 108%, transparent 0 125px, rgba(52,114,214,.15) 126px 164px, transparent 165px),
    linear-gradient(145deg, #05275a 0%, #0a3978 100%);
}

.form-card { width: 100%; max-width: 400px; margin: 0 auto; }
.form-card h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(2.15rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.form-intro {
  margin-bottom: 42px;
  color: #c3d0e3;
  font-size: 1rem;
  line-height: 1.55;
}
form { display: grid; }
label {
  margin: 0 0 10px;
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
}
input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  color: #12233f;
  background: #fff;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 14px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(6,43,98,.035);
  transition: box-shadow .15s ease, border-color .15s ease;
}
input:focus {
  border-color: #b7d3ff;
  box-shadow: 0 0 0 4px rgba(80,145,255,.20);
}
#username { margin-bottom: 22px; }
.password-wrap { position: relative; margin-bottom: 34px; }
.password-wrap input { padding-right: 80px; }
.show-password {
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-50%);
  padding: 8px 10px;
  color: #0762d5;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 900;
}
.show-password:hover,
.show-password:focus-visible { background: #eef5ff; outline: none; }
.login-button {
  min-height: 61px;
  padding: 0 22px;
  color: #061c42;
  background: linear-gradient(180deg, #ffe46f 0%, #ffd33e 100%);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0,18,55,.24);
  font-size: 1rem;
  font-weight: 900;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.login-button:hover { transform: translateY(-1px); filter: brightness(1.025); box-shadow: 0 18px 38px rgba(0,18,55,.29); }
.login-button:focus-visible { outline: 4px solid rgba(255,211,62,.28); outline-offset: 4px; }

.login-message {
  margin-top: 24px;
  padding: 14px 15px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: start;
  gap: 11px;
  color: #fff;
  background: rgba(150, 17, 32, .34);
  border: 1px solid rgba(255, 132, 142, .45);
  border-radius: 12px;
}
.login-message[hidden] { display: none; }
.message-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  font-weight: 900;
}
.login-message p { margin: 3px 0 0; font-size: .91rem; line-height: 1.45; }

footer {
  min-height: 122px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  color: #bdcce2;
  font-size: .82rem;
}

footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(189,204,226,.42);
  transition: color .15s ease, border-color .15s ease;
}
footer a:hover,
footer a:focus-visible {
  color: #ffffff;
  border-bottom-color: rgba(255,211,62,.78);
  outline: none;
}
.footer-separator {
  display: inline-block;
  margin: 0 .42em;
  color: rgba(189,204,226,.62);
}

/* Match the StevenFinch.com short-laptop behavior: preserve the normal
   desktop spacing, but pull the main card upward as viewport height shrinks. */
@media (min-width: 921px) and (max-height: 1050px) {
  .page-shell {
    padding-top: clamp(38px, 5.5vh, 62px);
    padding-bottom: 20px;
  }

  footer {
    min-height: 82px;
  }
}

@media (min-width: 921px) and (max-height: 860px) {
  .page-shell {
    padding-top: 22px;
    padding-bottom: 16px;
  }

  footer {
    min-height: 62px;
  }
}

@media (max-width: 920px) {
  .page-shell { width: min(760px, calc(100% - 28px)); padding-top: 36px; }
  .login-panel { grid-template-columns: 1fr; min-height: 0; }
  .brand-column { padding: 38px 32px 42px; }
  .brand-logo { width: min(410px, 80%); margin-bottom: 22px; }
  .form-column { padding: 52px 44px 56px; }
  .form-card { max-width: 520px; }
  footer { min-height: 82px; }
}

@media (max-width: 560px) {
  .page-shell { width: min(100% - 20px, 500px); padding: 14px 0 20px; }
  .login-panel { border-radius: 26px; }
  .brand-column { padding: 28px 20px 32px; }
  .brand-logo { width: min(330px, 88%); border-radius: 20px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.3rem); }
  .tagline { font-size: .95rem; }
  .form-column { padding: 42px 24px 46px; }
  .form-intro { margin-bottom: 32px; }
  footer { min-height: 70px; }
}


@media (prefers-reduced-motion: reduce) {
  .login-panel { animation: none; }
}
