:root {
  --navy: #07153a;
  --navy-mid: #0c2a63;
  --navy-deep: #05102c;
  --blue: #2f6fd6;
  --gold: #d4a017;
  --cream: #f6f3ec;
  --ink: #102047;
  --muted: #6b7288;
  --line: #d9dde8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.brand-pane {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  padding: 72px 80px 48px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: #5b6478;
  position: relative;
  z-index: 2;
}

.kicker-mark {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 2px;
}

.brand-copy {
  position: relative;
  z-index: 2;
  margin-top: 42px;
  max-width: 520px;
}

.brand-copy h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.95;
  font-weight: 700;
  color: var(--navy);
}

.brand-copy h1 span {
  display: block;
  color: #2f6fd6;
}

.brand-copy p {
  margin: 22px 0 0;
  max-width: 360px;
  font-size: 16px;
  line-height: 1.55;
  color: #5b6478;
}

.brand-logo-wrap {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 24px 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.brand-logo-mark {
  width: min(320px, 76%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: transparent;
}

.brand-logo-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.form-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: linear-gradient(180deg, #fbf9f4 0%, var(--cream) 100%);
}

.form-card {
  width: 100%;
  max-width: 420px;
}

.form-card h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.form-card .lede {
  margin: 8px 0 28px;
  color: var(--muted);
  font-size: 15px;
}

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

.field { margin-bottom: 18px; }

.password-wrap { position: relative; }

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: #2f6fd6;
  box-shadow: 0 0 0 3px rgba(47, 111, 214, 0.15);
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #8a90a2;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.login-btn {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #1b4ea8 0%, #123a86 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.login-btn:hover { filter: brightness(1.06); }

.create-account {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: #1a4fa8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.forgot-link {
  display: inline-block;
  margin: -8px 0 14px;
  color: #1a4fa8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.alerts { margin-bottom: 18px; }

.alert {
  background: #fdecec;
  color: #8a1f1f;
  border: 1px solid #f3c4c4;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 8px;
}

.alert.success {
  background: #eef8f0;
  color: #146c2e;
  border-color: #c6e6ce;
}

.register-card {
  max-width: 480px;
}

.register-pane {
  align-items: flex-start;
  padding-top: 56px;
  padding-bottom: 64px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.agree input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: #123a86;
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .brand-pane { min-height: 42vh; padding: 36px 28px 20px; }
  .brand-copy h1 { font-size: 40px; }
  .brand-logo-wrap { padding: 20px 0 8px; }
  .form-pane { align-items: flex-start; padding: 36px 22px 48px; }
  .register-shell .brand-pane {
    min-height: auto;
    padding: 28px 24px 8px;
  }
  .register-shell .brand-copy {
    margin-top: 22px;
  }
  .register-shell .brand-copy h1 {
    font-size: 32px;
  }
  .register-shell .brand-logo-mark {
    width: min(168px, 46%);
  }
  .register-shell .form-pane {
    padding-top: 24px;
  }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}
