:root {
  --paper: #f4f1ea;
  --ink: #252421;
  --muted: #77736b;
  --line: #d9d5cc;
  --accent: #ed6a4f;
  --accent-dark: #c94d37;
  --blue: #a9c6d6;
  --panel: #fbfaf7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Manrope', sans-serif;
}

button, input { font: inherit; }
a { color: inherit; }

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

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 42px clamp(32px, 7vw, 112px) 38px clamp(32px, 7vw, 112px);
  overflow: hidden;
  background: var(--blue);
}

.brand-panel::before, .brand-panel::after {
  position: absolute;
  content: '';
  border: 1px solid rgba(37, 36, 33, .18);
  border-radius: 50%;
}
.brand-panel::before { width: 530px; height: 530px; right: -270px; top: 22%; }
.brand-panel::after { width: 360px; height: 360px; left: -245px; bottom: -155px; }

.wordmark {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.5px;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font-family: Georgia, serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1;
  border-radius: 50%;
}

.brand-copy { z-index: 1; max-width: 470px; margin: auto 0; padding: 50px 0; }
.eyebrow {
  margin: 0 0 22px;
  color: #5d6f76;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 {
  max-width: 450px;
  margin-bottom: 24px;
  font-size: clamp(48px, 5.1vw, 78px);
  font-weight: 700;
  letter-spacing: -4px;
  line-height: .98;
}
.brand-description { max-width: 325px; margin-bottom: 0; color: #405158; font-size: 15px; line-height: 1.7; }
.panel-note { z-index: 1; display: flex; align-items: center; gap: 10px; margin: 0; color: #465b63; font-family: 'DM Mono', monospace; font-size: 11px; }
.signal-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px rgba(237, 106, 79, .16); }

.form-panel { display: grid; place-items: center; padding: 54px 42px; background: var(--panel); }
.form-wrap { width: min(100%, 432px); }
.form-heading { margin-bottom: 42px; }
.form-heading .eyebrow { color: var(--accent-dark); margin-bottom: 16px; }
h2 { margin-bottom: 11px; font-size: 36px; letter-spacing: -1.8px; line-height: 1.1; }
.form-heading p:last-child { margin-bottom: 0; color: var(--muted); font-size: 14px; }

form { display: grid; gap: 27px; }
.field-group { display: grid; gap: 10px; }
label, .field-label-row { font-size: 12px; font-weight: 700; }
.field-label-row { display: flex; justify-content: space-between; align-items: baseline; }
input[type='text'], input[type='password'] { width: 100%; padding: 13px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; transition: border-color .2s, box-shadow .2s; }
input::placeholder { color: #aaa59a; }
input[type='text']:focus, input[type='password']:focus { border-bottom-color: var(--accent); box-shadow: 0 2px 0 var(--accent); }
.field-hint { margin: -2px 0 0; color: #9b968c; font-family: 'DM Mono', monospace; font-size: 10px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 48px; }
.password-toggle { position: absolute; right: 0; bottom: 12px; padding: 0; color: var(--muted); background: none; border: 0; cursor: pointer; font-family: 'DM Mono', monospace; font-size: 10px; }
.password-toggle:hover, .quiet-link:hover, .create-account a:hover, .legal-copy a:hover { color: var(--accent-dark); }
.quiet-link { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 400; text-decoration: none; }
.check-row { display: flex; align-items: center; gap: 10px; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 500; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.checkmark { display: grid; width: 16px; height: 16px; place-items: center; border: 1px solid #c7c1b5; }
.check-row input:checked + .checkmark { background: var(--accent); border-color: var(--accent); }
.check-row input:checked + .checkmark::after { width: 7px; height: 4px; content: ''; border-bottom: 1px solid white; border-left: 1px solid white; transform: rotate(-45deg) translate(1px, -1px); }
.check-row input:focus-visible + .checkmark { outline: 2px solid var(--accent); outline-offset: 3px; }
.submit-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 2px; padding: 16px 18px; color: #fffaf5; background: var(--ink); border: 0; cursor: pointer; font-size: 12px; font-weight: 700; transition: background .2s, transform .2s; }
.submit-button span { font-size: 18px; font-weight: 400; line-height: 0; }
.submit-button:hover { background: var(--accent-dark); transform: translateY(-2px); }
.submit-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.form-status { min-height: 18px; margin: -12px 0 0; font-size: 11px; line-height: 1.5; }
.form-status.is-error { color: var(--accent-dark); }
.form-status.is-success { color: #487563; }
.create-account { margin: 47px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.create-account a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-copy { margin: 54px 0 0; color: #aaa59a; font-family: 'DM Mono', monospace; font-size: 9px; line-height: 1.6; text-align: center; }
.legal-copy a { text-underline-offset: 2px; }

@media (max-width: 780px) {
  .login-shell { display: block; }
  .brand-panel { min-height: 330px; padding: 28px 28px 30px; }
  .brand-copy { margin: 42px 0 0; padding: 0; }
  .brand-copy .eyebrow { margin-bottom: 12px; }
  h1 { max-width: 380px; margin-bottom: 14px; font-size: clamp(42px, 12vw, 62px); letter-spacing: -2.8px; }
  .brand-description { display: none; }
  .panel-note { margin-top: 36px; }
  .form-panel { min-height: calc(100vh - 330px); padding: 54px 28px; }
}

@media (max-width: 420px) {
  .form-panel { padding: 45px 24px; }
  .form-heading { margin-bottom: 35px; }
  h2 { font-size: 32px; }
}
