
:root {
  --black: #070707;
  --black-soft: #111111;
  --gold: #d6a94a;
  --gold-light: #f0c86e;
  --gold-dark: #8b5b16;
  --red: #a90808;
  --white: #ffffff;
  --muted: #787878;
  --line: rgba(214, 169, 74, .42);
  --shadow: 0 22px 60px rgba(0, 0, 0, .22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
  color: #1f1f1f;
  font-family: "Montserrat", Arial, sans-serif;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(480px, .95fr);
  overflow: hidden;
}

.brand-panel {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(0,0,0,.1), rgba(0,0,0,.92) 78%),
    url("../images/gold-packshot-dark.jpg") center / cover no-repeat;
  color: var(--white);
  padding: clamp(28px, 4.5vw, 64px);
  isolation: isolate;
}

.brand-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 18%, rgba(231, 180, 71, .16), transparent 35%),
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.64));
  z-index: -2;
}

.brand-top {
  position: relative;
  z-index: 3;
}

.menu-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 28px rgba(0,0,0,.24);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 10px;
  background: #1b1b1b;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 560px;
  padding-right: 82px;
}

.emblem-wrap {
  width: 94px;
  height: 94px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: #000;
  box-shadow: 0 0 0 5px rgba(214,169,74,.08), 0 16px 40px rgba(0,0,0,.35);
}

.emblem-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
}

.brand-copy h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.03;
  letter-spacing: .03em;
  color: var(--gold-light);
}

.brand-copy p {
  margin: 8px 0 0;
  color: rgba(255,255,255,.74);
  letter-spacing: .22em;
  font-size: 12px;
  text-transform: uppercase;
}

.hero-copy {
  position: absolute;
  left: clamp(28px, 4.5vw, 64px);
  right: clamp(28px, 4.5vw, 64px);
  bottom: clamp(72px, 11vh, 118px);
  z-index: 3;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.hero-copy h2 {
  margin: 18px 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 5.8vw, 82px);
  line-height: .98;
  max-width: 700px;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.68);
  line-height: 1.75;
  font-size: 15px;
}

.brand-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.line {
  position: absolute;
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  box-shadow: 0 0 18px rgba(230, 176, 65, .4);
}

.line-one {
  width: 60%;
  top: 31%;
  left: -8%;
  transform: rotate(-54deg);
}

.line-two {
  width: 70%;
  right: -20%;
  bottom: 17%;
  transform: rotate(22deg);
}

.red-shape {
  position: absolute;
  width: 58%;
  height: 21%;
  right: -15%;
  bottom: -2%;
  background: linear-gradient(135deg, #620000, #cf1010);
  transform: skewX(-24deg) rotate(7deg);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -12px 36px rgba(214,169,74,.12);
}

.login-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 48px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.97), rgba(252,250,244,.96)),
    url("../images/gold-bars-dark.jpg") center bottom / cover no-repeat;
}

.login-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.18));
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(100%, 540px);
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid rgba(214,169,74,.32);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.login-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-kicker {
  color: var(--gold-dark);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.login-heading h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 4.2vw, 54px);
  color: #171717;
}

.login-heading p {
  margin: 8px 0 32px 52px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .04em;
}

form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  min-height: 64px;
  border: 1px solid var(--gold);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(214,169,74,.08);
}

.field:focus-within {
  box-shadow: 0 0 0 4px rgba(214,169,74,.13);
}

.field-icon {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #141414, #080808);
  color: var(--gold);
  border-right: 1px solid rgba(214,169,74,.38);
}

.field-icon svg,
.password-toggle svg,
.forgot-link svg,
.login-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 18px;
  background: transparent;
  color: #141414;
  font-size: 16px;
}

.field input::placeholder {
  color: #b1b1b1;
}

.password-toggle {
  width: 52px;
  border: 0;
  background: transparent;
  color: #8b6a2f;
  cursor: pointer;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f5f5f;
  font-size: 13px;
}

.remember input {
  accent-color: var(--gold-dark);
}

.forgot-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #684410;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.forgot-link:hover {
  text-decoration: underline;
}

.forgot-link svg {
  width: 17px;
  height: 17px;
}

.login-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 170px;
  min-height: 56px;
  margin-top: 6px;
  padding: 0 28px;
  border: 1px solid #8c0000;
  border-radius: 4px;
  background: linear-gradient(180deg, #c31414, #980000);
  color: #fff;
  box-shadow: 0 14px 28px rgba(142,0,0,.22);
  font-size: 18px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(142,0,0,.28);
}

.login-button:active {
  transform: translateY(0);
}

.form-message {
  min-height: 18px;
  margin: 0;
  color: #8f0000;
  font-size: 13px;
  text-align: right;
}

.mobile-bottom-image {
  display: none;
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .brand-panel {
    min-height: 470px;
    padding: 26px 24px 48px;
    background:
      linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.78)),
      url("../images/gold-packshot-dark.jpg") center 42% / cover no-repeat;
  }

  .menu-button {
    width: 50px;
    height: 50px;
  }

  .brand-lockup {
    padding-right: 68px;
  }

  .emblem-wrap {
    width: 78px;
    height: 78px;
  }

  .brand-copy h1 {
    font-size: clamp(20px, 5vw, 29px);
  }

  .brand-copy p {
    font-size: 9px;
  }

  .hero-copy {
    left: 24px;
    right: 24px;
    bottom: 50px;
  }

  .hero-copy h2 {
    font-size: clamp(36px, 8vw, 58px);
    max-width: 650px;
  }

  .login-panel {
    min-height: auto;
    padding: 0;
    display: block;
    background: #fff;
  }

  .login-card {
    width: 100%;
    max-width: none;
    border: 0;
    box-shadow: none;
    padding: 34px 24px 0;
    background: #fff;
  }

  .mobile-bottom-image {
    display: block;
    position: relative;
    height: clamp(260px, 42vw, 420px);
    margin: 34px -24px 0;
    background:
      linear-gradient(180deg, #fff 0%, rgba(255,255,255,.02) 20%),
      url("../images/gold-bars-dark.jpg") center bottom / cover no-repeat;
  }

  .mobile-bottom-image::before {
    content: "";
    position: absolute;
    left: -7%;
    right: -7%;
    top: 0;
    height: 14px;
    background: linear-gradient(90deg, #111, var(--gold), #111);
    transform: skewY(3deg);
    transform-origin: left;
  }
}

@media (max-width: 560px) {
  .brand-panel {
    min-height: 360px;
    background:
      linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.74)),
      url("../images/gold-packshot-dark.jpg") 54% center / cover no-repeat;
  }

  .brand-copy {
    max-width: 190px;
  }

  .brand-copy h1 {
    font-size: 20px;
  }

  .brand-copy p {
    letter-spacing: .14em;
  }

  .hero-copy {
    bottom: 30px;
  }

  .eyebrow {
    font-size: 9px;
  }

  .hero-copy h2 {
    margin-top: 11px;
    font-size: 32px;
  }

  .hero-copy p {
    display: none;
  }

  .line-one {
    top: 22%;
  }

  .login-card {
    padding: 28px 18px 0;
  }

  .login-heading h2 {
    font-size: 42px;
  }

  .login-heading p {
    margin-left: 50px;
    margin-bottom: 26px;
    font-size: 12px;
  }

  .field {
    grid-template-columns: 56px 1fr auto;
    min-height: 58px;
  }

  .field input {
    font-size: 15px;
    padding: 0 14px;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .forgot-link {
    align-self: flex-end;
  }

  .login-button {
    width: 100%;
    justify-self: stretch;
    min-height: 56px;
    margin-top: 2px;
  }

  .form-message {
    text-align: center;
  }

  .mobile-bottom-image {
    margin-left: -18px;
    margin-right: -18px;
    min-height: 290px;
    background-size: auto 100%;
  }
}

@media (max-width: 380px) {
  .brand-panel {
    min-height: 330px;
  }

  .emblem-wrap {
    width: 66px;
    height: 66px;
  }

  .brand-copy h1 {
    font-size: 17px;
  }

  .menu-button {
    width: 46px;
    height: 46px;
  }

  .hero-copy h2 {
    font-size: 28px;
  }
}
