:root {
  --login-navy: #101828;
  --login-navy-soft: #182230;
  --login-blue: #155eef;
  --login-blue-dark: #1849a9;
  --login-cyan: #06aed4;
  --login-green: #12b76a;
  --login-surface: #ffffff;
  --login-canvas: #eef4fb;
  --login-text: #101828;
  --login-muted: #667085;
  --login-border: #d0d5dd;
  --login-radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  align-items: center;
  background: #0c1424;
  color: var(--login-text);
  display: flex;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  padding: clamp(20px, 4vw, 56px);
  position: relative;
}

button,
input {
  font: inherit;
}

.login-background {
  background:
    linear-gradient(rgba(12, 20, 36, .82), rgba(12, 20, 36, .94)),
    radial-gradient(circle at 72% 18%, rgba(21, 94, 239, .32), transparent 34%),
    linear-gradient(135deg, #0c1424, #17243a);
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
}

.login-background::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
  position: absolute;
}

.login-background__glow {
  background: var(--login-blue);
  border-radius: 50%;
  filter: blur(120px);
  height: 360px;
  opacity: .18;
  position: absolute;
  right: 8%;
  top: -160px;
  width: 360px;
}

.login-background__seal {
  background: url('../img/logo.png') center / contain no-repeat;
  bottom: -8%;
  filter: grayscale(1);
  height: 48%;
  left: 50%;
  opacity: .025;
  position: absolute;
  transform: translateX(-50%);
  width: 70%;
}

.login-shell {
  background: var(--login-surface);
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: var(--login-radius);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .38);
  display: grid;
  grid-template-columns: minmax(420px, .94fr) minmax(480px, 1.06fr);
  max-width: 1120px;
  min-height: 680px;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 1;
}

.login-showcase {
  background:
    radial-gradient(circle at 20% 12%, rgba(21, 94, 239, .32), transparent 27%),
    linear-gradient(155deg, #18243a 0%, var(--login-navy) 62%, #0b1220 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 40px;
  position: relative;
}

.login-showcase::after {
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 50%;
  bottom: -190px;
  content: "";
  height: 420px;
  position: absolute;
  right: -130px;
  width: 420px;
}

.login-brand {
  align-items: center;
  display: flex;
  min-height: 72px;
  position: relative;
  z-index: 1;
}

.login-brand img {
  display: block;
  height: auto;
  max-width: 330px;
  width: 100%;
}

.login-version {
  align-items: center;
  align-self: flex-start;
  background: rgba(21, 94, 239, .12);
  border: 1px solid rgba(132, 173, 255, .34);
  border-radius: 999px;
  color: #b2ccff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: .035em;
  margin-top: 26px;
  padding: 8px 12px;
  position: relative;
  text-transform: uppercase;
  z-index: 1;
}

.login-message {
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.login-eyebrow {
  color: #84adff;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.login-message h1 {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 780;
  letter-spacing: -.04em;
  line-height: 1.02;
  margin: 0;
  max-width: 440px;
}

.login-message p {
  color: #d0d5dd;
  font-size: 15px;
  line-height: 1.65;
  margin: 16px 0 0;
  max-width: 460px;
}

.legislative-panel {
  background: #070e1f;
  border: 1px solid rgba(152, 162, 179, .22);
  border-radius: 10px;
  margin-top: 26px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.legislative-panel__top {
  align-items: center;
  background: #0d162a;
  border-bottom: 1px solid rgba(152, 162, 179, .15);
  display: flex;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
}

.legislative-panel__top span {
  background: #f04438;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.legislative-panel__top span:nth-child(2) { background: #f79009; }
.legislative-panel__top span:nth-child(3) { background: var(--login-green); }

.legislative-panel__top strong {
  color: #98a2b3;
  font-size: 10px;
  letter-spacing: .06em;
  margin-left: auto;
  text-transform: uppercase;
}

.legislative-panel__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.legislative-panel__body > div {
  align-items: center;
  color: #d0d5dd;
  display: grid;
  font-size: 13px;
  gap: 10px;
  grid-template-columns: 20px 1fr auto;
}

.legislative-panel__body i { color: #53b1fd; }
.legislative-panel__body strong { color: #6ce9a6; font-size: 12px; font-weight: 650; }

.institutional-values {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: auto;
  padding-top: 24px;
  position: relative;
  z-index: 1;
}

.institutional-values > div {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.institutional-values i { color: #84adff; font-size: 14px; }
.institutional-values span,
.institutional-values strong,
.institutional-values small { display: block; }
.institutional-values strong { font-size: 12px; }
.institutional-values small { color: #98a2b3; font-size: 10px; margin-top: 2px; }

.login-access {
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 58px 30px;
}

.login-form-wrap {
  margin: auto 0;
  width: 100%;
}

.login-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 34px;
}

.login-heading__icon {
  align-items: center;
  background: #eaf2ff;
  border-radius: 12px;
  color: var(--login-blue);
  display: inline-flex;
  flex: 0 0 50px;
  font-size: 19px;
  height: 50px;
  justify-content: center;
}

.login-heading__eyebrow {
  color: var(--login-blue-dark);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.login-heading h2 {
  color: var(--login-text);
  font-size: 30px;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0;
}

.login-heading p {
  color: var(--login-muted);
  font-size: 14px;
  margin: 5px 0 0;
}

.login-alerts { margin-bottom: 20px; }

.login-alert {
  align-items: flex-start;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 10px;
  color: #912018;
  display: flex;
  font-size: 13px;
  gap: 10px;
  margin-bottom: 8px;
  padding: 11px 12px;
}

.login-alert--success { background: #ecfdf3; border-color: #abefc6; color: #05603a; }
.login-alert--warning { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.login-alert > span { flex: 1; }
.login-alert__close { background: transparent; border: 0; color: inherit; cursor: pointer; padding: 0 2px; }

.login-field { margin-bottom: 20px; }

.login-field label {
  color: #344054;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}

.login-field > small {
  color: var(--login-muted);
  display: block;
  font-size: 11px;
  margin-top: 6px;
}

.login-input {
  align-items: stretch;
  display: flex;
  min-height: 52px;
  position: relative;
}

.login-input__icon {
  align-items: center;
  background: #f9fafb;
  border: 1px solid var(--login-border);
  border-radius: 9px 0 0 9px;
  color: #475467;
  display: inline-flex;
  flex: 0 0 52px;
  justify-content: center;
}

.login-input input {
  background: #f7f9fc;
  border: 1px solid var(--login-border);
  border-left: 0;
  border-radius: 0 9px 9px 0;
  color: var(--login-text);
  flex: 1;
  font-size: 14px;
  font-weight: 550;
  min-width: 0;
  outline: 0;
  padding: 0 14px;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.login-input input::placeholder { color: #98a2b3; font-weight: 400; }

.login-input:focus-within .login-input__icon {
  border-color: #84adff;
  color: var(--login-blue);
}

.login-input input:focus {
  background: #ffffff;
  border-color: #84adff;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, .10);
}

.login-input:has(.login-password-toggle) input {
  border-radius: 0 9px 9px 0;
  padding-right: 48px;
}

.login-password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #667085;
  cursor: pointer;
  display: inline-flex;
  height: 100%;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 0;
  width: 46px;
}

.login-password-toggle:hover { color: var(--login-blue); }

.login-submit {
  align-items: center;
  background: linear-gradient(135deg, var(--login-blue), var(--login-blue-dark));
  border: 0;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(21, 94, 239, .22);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 750;
  justify-content: center;
  margin-top: 28px;
  min-height: 52px;
  padding: 0 18px;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  width: 100%;
}

.login-submit:hover:not(:disabled) {
  box-shadow: 0 16px 28px rgba(21, 94, 239, .28);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.login-submit:disabled { cursor: wait; opacity: .88; }
.login-submit__idle,
.login-submit__loading { align-items: center; display: flex; gap: 9px; }
.login-submit__loading { display: none; }
.login-submit.is-loading .login-submit__idle { display: none; }
.login-submit.is-loading .login-submit__loading { display: flex; }

.login-support {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #eaecf0;
  border-radius: 9px;
  color: var(--login-muted);
  display: flex;
  font-size: 12px;
  gap: 9px;
  margin-top: 22px;
  padding: 10px 12px;
}

.login-support i { color: var(--login-blue); }

.login-footer {
  align-items: center;
  border-top: 1px solid #eaecf0;
  color: #98a2b3;
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 18px;
}

.login-footer i { color: var(--login-green); margin-right: 4px; }

:focus-visible {
  outline: 3px solid rgba(21, 94, 239, .36);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  body { align-items: flex-start; padding: 24px; }
  .login-shell { grid-template-columns: 1fr; max-width: 680px; }
  .login-showcase { min-height: 390px; padding: 30px; }
  .login-brand img { max-width: 290px; }
  .login-message { margin-top: 22px; }
  .login-message h1 { max-width: 560px; }
  .legislative-panel { display: none; }
  .institutional-values { margin-top: 30px; }
  .login-access { min-height: 570px; padding: 44px; }
}

@media (max-width: 560px) {
  body { padding: 0; }
  .login-shell { border: 0; border-radius: 0; min-height: 100vh; }
  .login-showcase { min-height: 310px; padding: 24px; }
  .login-brand { min-height: 54px; }
  .login-brand img { max-width: 250px; }
  .login-version { font-size: 9px; margin-top: 16px; padding: 6px 9px; }
  .login-message { margin-top: 18px; }
  .login-message h1 { font-size: 30px; }
  .login-message p { font-size: 13px; line-height: 1.5; }
  .institutional-values { display: none; }
  .login-access { min-height: auto; padding: 34px 22px 24px; }
  .login-heading { align-items: flex-start; margin-bottom: 28px; }
  .login-heading h2 { font-size: 25px; }
  .login-heading__icon { flex-basis: 44px; height: 44px; }
  .login-footer { align-items: flex-start; flex-direction: column; gap: 7px; }
}

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