:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #63748a;
  --blue: #2563eb;
  --blue-deep: #123a8c;
  --blue-dark: #071a3e;
  --line: #dbe4f0;
  --surface: #ffffff;
  --danger: #b42318;
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: #eef3f9;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(21rem, 0.9fr) minmax(28rem, 1.1fr);
}

.brand-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 7vw, 7rem);
  color: white;
  background:
    radial-gradient(circle at 12% 14%, rgba(96, 165, 250, 0.5), transparent 24rem),
    linear-gradient(145deg, var(--blue-deep), var(--blue-dark) 72%);
}

.brand-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  right: -13rem;
  bottom: -12rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255, 255, 255, 0.025), 0 0 0 9rem rgba(255, 255, 255, 0.02);
}

.brand-mark {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  margin-bottom: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 1.3rem 1.3rem 1.3rem 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 1.3rem 3rem rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  font: 700 1.15rem/1 "Aptos Display", "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
}

.eyebrow,
.form-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow { color: #bfdbfe; }

.brand-copy h1 {
  margin: 0;
  font: 700 clamp(3rem, 6vw, 5.8rem)/0.94 "Aptos Display", "Segoe UI", sans-serif;
  letter-spacing: -0.055em;
}

.brand-lead {
  max-width: 29rem;
  margin: 1.5rem 0 0;
  color: #dbeafe;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}

.brand-footnote {
  position: absolute;
  left: clamp(3rem, 7vw, 7rem);
  bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #bfdbfe;
  font-size: 0.86rem;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0.3rem rgba(52, 211, 153, 0.13);
}

.form-panel {
  display: grid;
  place-content: center;
  padding: clamp(2rem, 7vw, 6rem);
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(37, 99, 235, 0.045) 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(37, 99, 235, 0.045) 40px);
}

.form-card { width: min(100%, 28rem); }
.form-kicker { color: var(--blue); }

.form-card h2 {
  margin: 0;
  font: 700 clamp(2.15rem, 4vw, 3rem)/1 "Aptos Display", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
}

.form-intro {
  margin: 1rem 0 2.4rem;
  color: var(--muted);
  line-height: 1.6;
}

form { display: grid; }

label {
  margin: 0 0 0.55rem;
  font-size: 0.86rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 3.25rem;
  margin: 0 0 1.35rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  box-shadow: 0 0.4rem 1.2rem rgba(15, 23, 42, 0.035);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.13);
}

.form-status {
  min-height: 1.4rem;
  margin: -0.25rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.form-status.is-error { color: var(--danger); }

button {
  min-height: 3.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 0.85rem;
  color: white;
  background: var(--blue);
  font: 700 0.95rem/1 inherit;
  cursor: pointer;
  box-shadow: 0 0.85rem 2rem rgba(37, 99, 235, 0.22);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #1d4ed8;
  box-shadow: 0 1rem 2.3rem rgba(37, 99, 235, 0.3);
}

button:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.28); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: 0.7; }

.privacy-note {
  margin: 2rem 0 0;
  color: #7b8ba0;
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 17rem; justify-content: flex-start; padding: 2.2rem 1.5rem 3rem; }
  .brand-mark { width: 3.6rem; height: 3.6rem; margin-bottom: 1.5rem; }
  .brand-copy h1 { font-size: 3rem; }
  .brand-lead { margin-top: 0.8rem; }
  .brand-footnote { display: none; }
  .form-panel { min-height: calc(100vh - 17rem); padding: 3rem 1.5rem; }
}

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