@font-face {
  font-family: 'system-serif';
  src: local('Georgia');
}

:root {
  --ink: #15181A;
  --ink-soft: #565C57;
  --stone: #8B8F86;
  --hairline: #E7E4DA;
  --paper: #FBFAF7;
  --forest: #1B4332;
  --brass: #AD8A4E;
  --brick: #9A3B2C;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.page {
  min-height: 100vh;
  display: flex;
}

/* --- Brand panel (desktop only) --- */
.brand {
  display: none;
  position: relative;
  width: 44%;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  background: var(--ink);
  overflow: hidden;
}

.brand-glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}
.brand-glow--brass { width: 320px; height: 320px; right: -96px; top: -96px; background: var(--brass); }
.brand-glow--forest { width: 260px; height: 260px; left: -64px; bottom: 0; background: var(--forest); opacity: 0.05; }

.brand-mark { position: relative; display: flex; align-items: center; gap: 0.65rem; }
.brand-icon {
  width: 36px; height: 36px; border-radius: 3px;
  background: var(--brass); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.brand-icon--dark { background: var(--forest); color: #F7F0E1; }
.brand-title { color: #fff; font-weight: 600; font-size: 13px; letter-spacing: 0.03em; }
.brand-title--dark { color: var(--ink); }
.brand-sub { color: rgba(255,255,255,0.45); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; }
.brand-sub--dark { color: var(--stone); }

.brand-copy { position: relative; max-width: 360px; }
.brand-rule { width: 40px; height: 2px; background: var(--brass); margin-bottom: 1.25rem; }
.brand-copy h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.25;
  color: #F7F0E1;
  margin: 0;
}
.brand-copy p { font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 1rem; }

.brand-domain { position: relative; font-size: 11px; color: rgba(255,255,255,0.35); font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; }

/* --- Form panel --- */
.panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.panel-inner { width: 100%; max-width: 380px; }

.mark-mobile { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 2rem; }

.eyebrow { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--brass); margin-bottom: 0.5rem; }
h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; font-size: 24px; margin: 0; color: var(--ink); }
.lede { font-size: 13px; color: var(--stone); margin: 0.25rem 0 1.5rem; }

.alert {
  margin-bottom: 1rem;
  border-radius: 3px;
  padding: 0.7rem 0.85rem;
  font-size: 12px;
  line-height: 1.5;
}
.alert--error { background: #FBEDEA; border: 1px solid #EFC7BC; color: var(--brick); }
.alert--info { background: #FBF3E9; border: 1px solid #EAD9BC; color: #7A5A20; }

form { display: flex; flex-direction: column; gap: 0.85rem; }

label { font-size: 11px; font-weight: 600; color: var(--ink-soft); margin-bottom: -0.4rem; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .icon {
  position: absolute; left: 11px; font-size: 13px; color: var(--stone);
}
.input-wrap input {
  width: 100%;
  font-size: 14px;
  padding: 0.65rem 0.75rem 0.65rem 2.1rem;
  border-radius: 3px;
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--ink);
  outline: none;
}
.input-wrap input:focus { border-color: var(--forest); }
.toggle-pw {
  position: absolute; right: 10px;
  background: none; border: none; cursor: pointer;
  font-size: 11px; color: var(--stone); font-weight: 600;
}

.submit {
  margin-top: 0.4rem;
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 3px;
  background: var(--forest);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.submit:disabled { opacity: 0.6; cursor: default; }

.footnote { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); font-size: 11px; text-align: center; color: var(--stone); }

@media (min-width: 1024px) {
  .brand { display: flex; }
  .mark-mobile { display: none; }
}
