:root {
  --navy: #0f1b2d;
  --navy-2: #17263b;
  --gold: #b99a63;
  --ivory: #f4f1ea;
  --paper: #fbfaf7;
  --ink: #17202b;
  --muted: #687383;
  --line: #d9dde3;
  --danger: #9b2c2c;
  --success: #2e6b4d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

button, input { font: inherit; }

.language-toggle {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 20;
  width: auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(15, 27, 45, .14);
  border-radius: 999px;
  background: rgba(251, 250, 247, .92);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(15, 27, 45, .06);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.language-toggle:hover { transform: translateY(-1px); }
.language-separator { margin: 0 6px; color: var(--gold); }

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 46%) 1fr;
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 64px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(185,154,99,.14), transparent 28%),
    linear-gradient(145deg, var(--navy), var(--navy-2));
  overflow: hidden;
}

.brand-panel::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  right: -180px;
  bottom: -160px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: .08em;
}

.brand-copy { max-width: 560px; position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .19em;
  color: #d7c39c;
}

.eyebrow.dark { color: #8b744c; }

h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 650;
}

.lead {
  margin: 28px 0 0;
  max-width: 520px;
  color: #cbd3df;
  font-size: 17px;
  line-height: 1.7;
}

.brand-footer {
  color: #9da9b8;
  font-size: 13px;
  letter-spacing: .04em;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}

.auth-card { width: min(100%, 430px); }
.mobile-brand { display: none; }

.step { display: none; }
.step.active { display: block; }

h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.subtext, .bodycopy {
  margin: 12px 0 28px;
  color: var(--muted);
  line-height: 1.6;
}

.bodycopy { margin-top: 4px; }

label {
  display: block;
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input:focus {
  border-color: #7d8ca0;
  box-shadow: 0 0 0 4px rgba(15,27,45,.07);
}

.microcopy {
  margin: 8px 0 0;
  color: #8b94a2;
  font-size: 12px;
  line-height: 1.45;
}

button {
  width: 100%;
  min-height: 50px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 750;
  transition: transform .12s, opacity .12s, background .12s;
}

button:hover { transform: translateY(-1px); }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.primary {
  margin-top: 24px;
  color: #fff;
  background: var(--navy);
}

.primary:hover { background: #172941; }

.secondary {
  margin-top: 10px;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--line);
}

.back {
  width: auto;
  min-height: auto;
  margin: 0 0 28px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
}

.message {
  display: none;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.message.error { display: block; color: var(--danger); background: #fff1f1; }
.message.info { display: block; color: var(--navy); background: #eef3f8; }
.message.success { display: block; color: var(--success); background: #edf7f1; }

.auth-footer {
  display: flex;
  gap: 18px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid #e6e8eb;
  color: #9299a2;
  font-size: 12px;
}

.success-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e8f3ec;
  color: var(--success);
  font-weight: 900;
}

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .auth-panel { min-height: 100vh; padding: 72px 22px 28px; }
  .mobile-brand {
    display: block;
    margin-bottom: 54px;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -.02em;
  }
  .auth-footer { flex-wrap: wrap; }
  .language-toggle { top: 18px; right: 18px; }
}
