*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --paper: #ffffff;
  --paper2: #f5f6f7;
  --line: #e4e7ea;
  --line2: #d3d8dc;
  --clay: #3b4148;
  --clay-l: #9aa3ac;
  --char: #0c0e10;
  --char2: #1c2126;
  --ink: #1a1d21;
  --ink2: #565d64;
  --ink3: #8a929a;
}
html {
  -webkit-font-smoothing: antialiased;
}
body {
  font-family: Inter, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}
.serif {
  font-family: "Cormorant Garamond", serif;
}
a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100vh;
}

/* ── Left: brand panel with photo ── */
.brand {
  position: relative;
  overflow: hidden;
  background: var(--char);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 4vw, 56px);
}
.brand-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.brand-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.brand-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(8, 10, 12, 0.78),
    rgba(8, 10, 12, 0.55) 50%,
    rgba(8, 10, 12, 0.85)
  );
}
.brand-top,
.brand-bottom {
  position: relative;
  z-index: 2;
}
.brand-logo img {
  height: 56px;
  width: auto;
}
.brand-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 2.6vw, 2.9rem);
  font-weight: 400;
  line-height: 1.14;
  color: #fff;
  max-width: 16ch;
  letter-spacing: -0.01em;
}
.brand-quote em {
  font-style: italic;
  color: var(--clay-l);
}
.brand-sub {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  max-width: 36ch;
  line-height: 1.7;
}
.brand-meta {
  display: flex;
  gap: 28px;
  margin-top: 36px;
}
.bm {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bm-n {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  color: #fff;
}
.bm-l {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Right: login form ── */
.panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
}
.card {
  width: 100%;
  max-width: 400px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--clay);
}
.card h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--char);
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.card .lede {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.7;
  margin-bottom: 32px;
}
.fg {
  margin-bottom: 18px;
}
.fg label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  font-weight: 600;
  margin-bottom: 7px;
}
.fg input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper2);
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.fg input:focus {
  border-color: var(--clay-l);
  background: var(--paper);
}
.pw-wrap {
  position: relative;
}
.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  cursor: pointer;
  font-weight: 600;
}
.pw-toggle:hover {
  color: var(--clay);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink2);
  cursor: pointer;
  user-select: none;
}
.remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--char);
  cursor: pointer;
}
.forgot {
  font-size: 12px;
  color: var(--clay);
  font-weight: 500;
}
.forgot:hover {
  text-decoration: underline;
}
.btn {
  width: 100%;
  background: var(--char);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 15px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
}
.btn:hover {
  background: var(--char2);
}
.msg {
  margin-top: 16px;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
  transition: color 0.2s;
}
.msg.err {
  color: #a4443a;
}
.msg.ok {
  color: #3d6b4a;
}
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
}
.divider span {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.divider p {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink3);
}
.help {
  margin-top: 30px;
  font-size: 12px;
  color: var(--ink3);
  text-align: center;
  line-height: 1.7;
}
.help a {
  color: var(--clay);
  font-weight: 500;
}
.back {
  position: absolute;
  top: clamp(20px, 3vw, 32px);
  left: clamp(20px, 4vw, 44px);
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s;
}
.back:hover {
  color: #fff;
}
.secure {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
}
.secure svg {
  width: 12px;
  height: 12px;
  stroke: var(--ink3);
  fill: none;
  stroke-width: 1.6;
}

@media (max-width: 860px) {
  .wrap {
    grid-template-columns: 1fr;
  }
  .brand {
    min-height: 230px;
    padding: 24px;
  }
  .brand-quote {
    font-size: 1.7rem;
  }
  .brand-sub,
  .brand-meta {
    display: none;
  }
  .panel {
    padding: 36px 22px 56px;
  }
}
