:root {
  --ink: #071a3b;
  --blue: #1769ff;
  --cyan: #26d6e7;
  --paper: #f4f8fc;
  --line: #cad9e9;
  --muted: #5b6c82;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
.portal-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .88fr) minmax(520px, 1.12fr); }
.portal-brand { position: relative; overflow: hidden; min-height: 100vh; padding: 48px clamp(34px, 5vw, 78px); color: white; background: radial-gradient(circle at 80% 12%, rgba(38,214,231,.24), transparent 31%), linear-gradient(150deg, #071a3b 0%, #0b315a 100%); display: flex; flex-direction: column; }
.portal-brand::after { content: ""; position: absolute; width: 440px; height: 440px; right: -245px; bottom: -235px; border: 70px solid rgba(38,214,231,.11); border-radius: 50%; }
.portal-logo { display: block; width: min(330px, 80%); }
.portal-logo img { display: block; width: 100%; filter: brightness(0) invert(1); }
.brand-copy { margin: auto 0; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; color: var(--cyan); font-size: .76rem; font-weight: 900; letter-spacing: .17em; }
h1 { margin: 0; font-size: clamp(3rem, 5vw, 5rem); line-height: .97; letter-spacing: -.055em; }
.brand-copy > p:last-child { max-width: 590px; margin: 28px 0 0; color: #d6e6f5; font-size: 1.1rem; line-height: 1.7; }
.signal { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.signal::before { content: ""; width: 110px; height: 2px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.signal span { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px rgba(38,214,231,.8); }
.signal span:nth-child(2) { opacity: .65; }.signal span:nth-child(3) { opacity: .35; }

.portal-workspace { display: grid; align-content: center; justify-items: center; padding: 54px clamp(24px, 6vw, 92px); position: relative; }
.back-link { position: absolute; top: 34px; left: clamp(24px, 6vw, 92px); color: var(--muted); font-size: .9rem; font-weight: 750; text-decoration: none; }
.login-card { width: min(640px, 100%); padding: clamp(34px, 5vw, 64px); background: white; border: 1px solid var(--line); box-shadow: 0 28px 75px rgba(7,26,59,.11); }
.login-card .eyebrow { color: var(--blue); }
h2 { margin: 0; font-size: clamp(2.25rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -.05em; }
.helper { margin: 22px 0 34px; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
form { display: grid; gap: 12px; }
label { font-weight: 850; }
input { width: 100%; height: 62px; padding: 0 18px; border: 2px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font: inherit; font-size: 1.08rem; outline: none; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,255,.12); }
button { min-height: 60px; margin-top: 6px; border: 0; border-radius: 10px; color: white; background: linear-gradient(90deg, var(--blue), #0b4fc7); font: inherit; font-weight: 900; cursor: pointer; box-shadow: 0 12px 28px rgba(23,105,255,.22); }
button:disabled { cursor: wait; opacity: .7; }
.signin-button { min-height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: white; background: linear-gradient(90deg, var(--blue), #0b4fc7); font-weight: 900; text-decoration: none; box-shadow: 0 12px 28px rgba(23,105,255,.22); }
.message { min-height: 22px; margin: 0; color: var(--muted); font-size: .9rem; }
.message.error { color: #a72525; font-weight: 750; }
.support { margin: 26px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; line-height: 1.55; }

@media (max-width: 880px) {
  .portal-shell { grid-template-columns: 1fr; }
  .portal-brand { min-height: 38vh; padding: 30px 26px 42px; }
  .portal-logo { width: 230px; }
  .brand-copy { margin: 55px 0 8px; }
  h1 { font-size: clamp(2.7rem, 11vw, 4.4rem); }
  .signal { display: none; }
  .portal-workspace { min-height: 62vh; padding: 84px 20px 38px; }
  .back-link { top: 32px; left: 24px; }
  .login-card { padding: 34px 24px; }
}
