:root {
  color-scheme: light;
  --ink: #10263d;
  --muted: #586a79;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --line: #d9e0df;
  --accent: #087f8c;
  --accent-dark: #05636d;
  --danger: #a33a3a;
  --success: #176c4d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

button,
input { font: inherit; }

.login-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(390px, 1.08fr);
}

.identity {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 5rem);
  color: #f8fbfb;
  background: var(--ink);
  isolation: isolate;
}

.identity::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: clamp(-9rem, -9vw, -4rem);
  bottom: clamp(-9rem, -9vw, -4rem);
  width: clamp(17rem, 36vw, 36rem);
  aspect-ratio: 1;
  border: 1px solid rgba(135, 220, 220, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(135, 220, 220, 0.04), 0 0 0 8rem rgba(135, 220, 220, 0.025);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.wordmark-mark {
  display: grid;
  width: 2.25rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #b9eeee;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.identity-copy {
  max-width: 32rem;
  margin: clamp(5rem, 17vh, 11rem) 0;
  animation: rise-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow,
.step {
  margin: 0 0 1rem;
  color: #93d9db;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.identity h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.intro {
  max-width: 28rem;
  margin: 1.6rem 0 0;
  color: #c8d5dc;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.environment {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  color: #b8c8d1;
  font-size: 0.78rem;
}

.environment span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #6fd6bd;
  box-shadow: 0 0 0 0.25rem rgba(111, 214, 189, 0.12);
}

.sign-in {
  display: flex;
  width: min(100%, 39rem);
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 7vw, 7rem);
  animation: rise-in 520ms 80ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.form-heading { margin-bottom: 2.6rem; }

.form-heading .step { color: var(--accent); }

.form-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  font-weight: 660;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.form-heading > p:last-child,
.support-note {
  color: var(--muted);
  line-height: 1.6;
}

.reset-link { display: inline-block; margin-top: 1.25rem; color: var(--accent-dark); font-size: 0.86rem; font-weight: 680; }
.reset-link:focus-visible { outline: 3px solid rgba(8, 127, 140, 0.28); outline-offset: 3px; }

.form-heading > p:last-child { margin: 0.9rem 0 0; }

.field { margin-bottom: 1.4rem; }

label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
  font-weight: 680;
}

input {
  width: 100%;
  min-height: 3.3rem;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid #aab7ba;
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:hover { border-color: #71868b; }

input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 2px 0 var(--accent);
}

button {
  display: flex;
  width: 100%;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--accent);
  color: #ffffff;
  background: var(--accent);
  cursor: pointer;
  font-weight: 720;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
button:active { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: 0.68; }
button:focus-visible { outline: 3px solid rgba(8, 127, 140, 0.28); outline-offset: 3px; }

.button-arrow {
  font-size: 1.25rem;
  transition: transform 160ms ease;
}

button:hover .button-arrow { transform: translateX(0.18rem); }

.status {
  min-height: 1.45rem;
  margin: 1rem 0 0;
  color: var(--danger);
  font-size: 0.86rem;
  line-height: 1.5;
}

.status[data-state="success"] { color: var(--success); }

.support-note {
  margin: 2.3rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .identity { min-height: 21rem; padding: 1.6rem; }
  .identity-copy { margin: 4rem 0 2.5rem; }
  .identity h1 { font-size: clamp(2.7rem, 15vw, 4.6rem); }
  .environment { display: none; }
  .sign-in { width: 100%; padding: 3.5rem 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}