:root {
  color-scheme: light dark;
  --bg: #f4f6f8;
  --bg-soft: #edf1f5;
  --card: #ffffff;
  --inset: #f5f7f9;
  --border: #e0e5eb;
  --border-strong: #c6d0dc;
  --accent: #3974ce;
  --accent-strong: #285eae;
  --accent-soft: #eaf1fb;
  --ok: #19785b;
  --fail: #b83e52;
  --fail-bg: #faecef;
  --fail-border: #ecd4da;
  --title: #182234;
  --text: #354256;
  --text-dim: #5c6a7d;
  --text-faint: #6d7989;
  --on-accent: #ffffff;
  --shadow: 0 22px 60px rgba(24, 34, 52, .12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1320;
    --bg-soft: #101927;
    --card: #121c2b;
    --inset: #101927;
    --border: #263142;
    --border-strong: #3a485c;
    --accent: #76a5f5;
    --accent-strong: #a3c1f7;
    --accent-soft: #1b2c45;
    --ok: #63c9a2;
    --fail: #ed8d9a;
    --fail-bg: #38232b;
    --fail-border: #59333e;
    --title: #f1f5f9;
    --text: #d5dde8;
    --text-dim: #a6b2c2;
    --text-faint: #8997a9;
    --on-accent: #0b1728;
    --shadow: 0 28px 80px rgba(0, 0, 0, .42);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
main {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 40px;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 650;
  color: var(--title);
  letter-spacing: -.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
}
.visual-copy {
  margin: 42px 0 36px;
}
.visual h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.28;
  color: var(--title);
  letter-spacing: -.02em;
}
.visual p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 300px;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-dim);
  font-size: 13px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}
.auth {
  padding: 44px 40px;
  background: var(--card);
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.3;
  color: var(--title);
  letter-spacing: -.02em;
}
.subtitle {
  margin: 8px 0 24px;
  color: var(--text-dim);
  font-size: 14px;
}
label {
  display: block;
  margin: 0 0 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
input[type="email"],
input[type="text"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--inset);
  color: var(--title);
  font: inherit;
  font-size: 15px;
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
button {
  width: 100%;
  height: 46px;
  margin-top: 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background .15s, transform .12s;
}
button:hover {
  background: var(--accent-strong);
}
button:active {
  transform: translateY(1px);
}
.msg {
  margin: 0 0 18px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--title);
}
.msg.err {
  background: var(--fail-bg);
  border-color: var(--fail-border);
  color: var(--fail);
}
.back {
  display: inline-block;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--accent);
  text-decoration: none;
}
.back:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}
.footnote {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 12px;
}
@media (max-width: 720px) {
  body { padding: 16px; }
  main { grid-template-columns: 1fr; border-radius: 16px; }
  .visual { padding: 24px 24px 20px; border-right: 0; border-bottom: 1px solid var(--border); }
  .visual-copy { margin: 18px 0 14px; }
  .visual h2 { font-size: 20px; }
  .auth { padding: 28px 24px; }
}
