:root {
  --purple: #2f2457;
  --purple-deep: #281a46;
  --purple-bright: #4b1f6f;
  --gold: #c78b1d;
  --ink: #2b2b2b;
  --muted: #686477;
  --cream: #fbf8f1;
  --paper: #fffdf9;
  --white: #ffffff;
  --line: #e4dbcf;
  --danger: #9f1d22;
  --shadow: 0 24px 70px rgba(45, 32, 26, .12);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(199, 139, 29, .10), transparent 28rem),
    radial-gradient(circle at 88% 85%, rgba(75, 31, 111, .09), transparent 30rem),
    var(--cream);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

button, input, select { font: inherit; }

.test-banner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 18px;
  background: linear-gradient(90deg, #13233f, #4b1f6f);
  color: #fff;
  font-size: .78rem;
  letter-spacing: .01em;
  text-align: center;
}
.test-banner strong {
  color: #ffd65a;
  letter-spacing: .12em;
}

.login-page { display: flex; flex-direction: column; }
.login-shell {
  width: min(1180px, calc(100% - 40px));
  flex: 1;
  margin: 0 auto;
  padding: clamp(42px, 8vw, 90px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .7fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
}

.login-brand {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.login-brand img {
  width: 142px;
  height: 142px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(47, 36, 87, .14));
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--purple-bright);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2 { margin-top: 0; color: var(--purple-deep); line-height: 1.02; font-family: "Aptos Display", "Aptos", "Segoe UI", Arial, sans-serif; font-weight: 600; }
h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 6.2vw, 5.7rem);
  letter-spacing: -.035em;
}
h2 { margin-bottom: 8px; font-size: 2rem; }
.login-intro {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.login-card {
  width: 100%;
  padding: clamp(30px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 249, .96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.login-card-heading { margin-bottom: 22px; }
.field { display: grid; gap: 8px; margin: 18px 0; }
.field label { color: var(--purple-deep); font-weight: 800; }
.field select,
.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #d7ccbe;
  border-radius: 13px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field select:focus,
.field input:focus {
  border-color: var(--purple-bright);
  box-shadow: 0 0 0 4px rgba(75, 31, 111, .12);
}
.field small { color: var(--muted); }

.button {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--purple-bright);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(75, 31, 111, .18);
  transition: transform .15s ease, background .15s ease;
}
.button:hover { background: var(--purple-deep); transform: translateY(-1px); }
.button:focus-visible { outline: 4px solid rgba(199, 139, 29, .28); outline-offset: 3px; }

.form-error {
  min-height: 1.4em;
  margin: 6px 0 0;
  color: var(--danger);
  font-weight: 750;
}
.login-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

footer {
  padding: 24px 20px;
  background: var(--purple-deep);
  color: rgba(255,255,255,.9);
  text-align: center;
  font-size: .82rem;
}

@media (max-width: 850px) {
  .login-shell { grid-template-columns: 1fr; width: min(680px, calc(100% - 28px)); }
  .login-brand { grid-template-columns: 92px 1fr; }
  .login-brand img { width: 92px; height: 92px; }
  h1 { font-size: clamp(2.7rem, 12vw, 4.4rem); }
}

@media (max-width: 560px) {
  .test-banner { align-items: flex-start; flex-direction: column; gap: 2px; }
  .login-shell { padding: 34px 0 52px; }
  .login-brand { grid-template-columns: 1fr; text-align: left; }
  .login-brand img { width: 82px; height: 82px; }
  .login-card { padding: 26px 20px; border-radius: 22px; }
}
