:root {
  --ink: #17211c;
  --muted: #5e675f;
  --paper: #f3efe6;
  --card: #fbf8f2;
  --line: #e4ddd2;
  --forest: #14352a;
  --forest-deep: #0e261e;
  --gold: #e4c27a;
  --sage: #1f6b4a;
  --danger: #8d2f2a;
  --danger-bg: #f8ecea;
  --note: #eef4ea;
  --shadow: 0 24px 60px rgba(20, 32, 26, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

button,
input {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
}

.brand {
  background:
    radial-gradient(circle at 18% 18%, rgba(228, 194, 122, 0.18), transparent 28%),
    linear-gradient(165deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: #f6f1e7;
  padding: 40px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.mark-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(228, 194, 122, 0.16);
}

.brand-copy h1 {
  margin: 12px 0 16px;
  max-width: 11ch;
  font-family: var(--serif);
  font-size: clamp(46px, 5vw, 72px);
  font-weight: 520;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.brand-copy p,
.brand-note {
  max-width: 36ch;
  color: rgba(246, 241, 231, 0.78);
  font-size: 17px;
  line-height: 1.55;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}

.brand-note {
  margin: 0;
  font-size: 14px;
}

.panel {
  display: grid;
  place-items: center;
  padding: 32px 24px;
}

.card {
  width: min(100%, 420px);
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.lede {
  margin: 8px 0 28px;
  color: var(--muted);
  line-height: 1.5;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field > label,
.check {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  outline: none;
}

input:focus {
  border-color: #8eaa9b;
  box-shadow: 0 0 0 4px rgba(31, 107, 74, 0.12);
}

.password-wrap {
  position: relative;
  display: block;
}

.password-wrap input {
  padding-right: 84px;
}

.ghost,
.primary,
.text-btn {
  border: 0;
  cursor: pointer;
}

.ghost {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: transparent;
  color: var(--sage);
  font-weight: 600;
}

.ghost:hover,
.text-btn:hover {
  text-decoration: underline;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--sage);
}

.text-btn {
  padding: 0;
  background: none;
  color: var(--sage);
  font-weight: 600;
}

.message {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 14px;
  line-height: 1.45;
}

.message.note {
  background: var(--note);
  color: var(--forest);
}

.primary {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: var(--forest);
  color: #f6f1e7;
  font-weight: 600;
}

.primary:hover {
  background: #1b4637;
}

.primary:disabled {
  opacity: 0.7;
  cursor: progress;
}

.foot {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

.account-body {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 8vw;
}

.mark-dark {
  color: var(--ink);
}

.ghost-dark {
  position: static;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}

.account {
  width: min(920px, calc(100% - 48px));
  margin: 12px auto 64px;
}

.eyebrow-dark {
  color: var(--sage);
}

.account h1 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 520;
  letter-spacing: -0.03em;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.tile {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.tile h2 {
  font-family: var(--sans);
  font-size: 18px;
  letter-spacing: 0;
}

.tile p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .brand {
    min-height: auto;
    padding: 28px 24px 32px;
    gap: 28px;
  }

  .brand-copy h1 {
    max-width: 14ch;
    font-size: 46px;
  }

  .brand-note {
    display: none;
  }

  .tiles {
    grid-template-columns: 1fr;
  }

  .topbar,
  .account {
    width: min(920px, calc(100% - 32px));
  }

  .topbar {
    padding: 18px 0;
    margin: 0 auto;
  }
}
