:root {
  --deep: #002f34;
  --deep-2: #004f55;
  --gold: #d6a84d;
  --gold-bright: #e6bd68;
  --paper: #f7f1e4;
  --ink: #1f2c2e;
  --muted: #687875;
  --line: #d5ddd8;
  --danger: #a74236;
  --white: #fff;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: var(--paper); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.login-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(390px, 44fr) minmax(520px, 56fr);
}

.login-brand-panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(34px, 4vw, 58px) clamp(34px, 4.5vw, 72px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 92% 26%, rgba(214,168,77,.08), transparent 31%),
    linear-gradient(145deg, var(--deep), var(--deep-2));
  color: var(--white);
}

.login-brand-panel::before,
.login-brand-panel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(230,189,104,.11);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.login-brand-panel::before {
  width: min(34vw, 520px);
  aspect-ratio: 1;
  right: -52%;
  top: 15%;
}
.login-brand-panel::after {
  width: min(21vw, 320px);
  aspect-ratio: 1;
  right: -24%;
  top: 29%;
}

.login-house-visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.login-house-visual::before,
.login-house-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.login-house-visual::before {
  background: linear-gradient(
    to bottom,
    rgba(0,47,52,.9) 0%,
    rgba(0,47,52,.86) 38%,
    rgba(0,47,52,.78) 68%,
    rgba(0,47,52,.66) 100%
  );
}
.login-house-visual::after {
  background:
    radial-gradient(circle at 23% 48%, rgba(0,47,52,.24), transparent 46%),
    linear-gradient(90deg, rgba(0,47,52,.28), rgba(0,47,52,.08) 58%, rgba(0,47,52,.24));
}
.login-house-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  opacity: .92;
  filter: saturate(.68) contrast(1.05);
}

.login-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  align-self: flex-start;
  color: var(--white);
  text-decoration: none;
}
.login-brand img {
  width: clamp(72px, 6vw, 82px);
  height: clamp(72px, 6vw, 82px);
  flex: 0 0 auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.login-brand-copy { min-width: 0; }
.login-brand-copy strong,
.login-brand-copy small,
.login-brand-copy b { display: block; text-transform: uppercase; }
.login-brand-copy strong {
  font: 700 17px "DM Sans", sans-serif;
  letter-spacing: .14em;
}
.login-brand-copy small {
  margin-top: 5px;
  color: var(--gold-bright);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  white-space: nowrap;
}
.login-brand-copy b {
  width: max-content;
  margin-top: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(214,168,77,.38);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .18em;
}

.brand-message {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  margin: auto 0;
  padding: clamp(42px, 7vh, 78px) 0 34px;
}
.eyebrow {
  margin: 0 0 15px;
  color: var(--gold-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.brand-message h1 {
  margin: 0;
  font: 500 clamp(45px, 4.4vw, 66px)/.98 "Playfair Display", Georgia, serif;
  letter-spacing: -.04em;
}
.brand-message h1 em { color: var(--gold-bright); font-weight: 500; }
.brand-intro {
  max-width: 470px;
  margin: 23px 0 0;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  line-height: 1.75;
}
.workspace-benefits {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}
.workspace-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.76);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.workspace-benefits li::before {
  content: "✓";
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214,168,77,.42);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 9px;
}
.security-note {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255,255,255,.4);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.security-note span { margin-right: 7px; color: var(--gold); font-size: 6px; }

.login-form-panel {
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: 42px clamp(32px, 6vw, 96px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 88% 8%, rgba(214,168,77,.11), transparent 28%),
    linear-gradient(145deg, #fbfaf6, var(--paper));
}
.login-card {
  position: relative;
  width: min(540px, 100%);
  padding: clamp(34px, 4vw, 48px);
  border: 1px solid rgba(0,47,52,.09);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 24px 60px rgba(0,47,52,.11);
}
.login-card::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin-bottom: 25px;
  border-radius: 999px;
  background: var(--gold);
}
.login-card h2 {
  margin: 0;
  font: 500 clamp(40px, 3.4vw, 50px)/1.02 "Playfair Display", Georgia, serif;
  letter-spacing: -.035em;
}
.form-intro {
  max-width: 390px;
  margin: 13px 0 27px;
  color: #5f706d;
  font-size: 12px;
  line-height: 1.65;
}
#emailFields label,
#passwordFields label {
  display: block;
  margin: 18px 0 8px;
  color: #415552;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.field {
  min-height: 56px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,47,52,.025);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.field:focus-within {
  border-color: #b98b31;
  box-shadow: 0 0 0 3px rgba(214,168,77,.14);
  transform: translateY(-1px);
}
.field > span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf3f1;
  color: #486965;
  font-weight: 800;
}
.field > span svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}
.field input::placeholder { color: #a3aeab; }
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
  transition: background-color 9999s ease-out 0s;
}
.field button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  padding: 7px 8px;
  background: transparent;
  color: #7d5b19;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.field button:hover,
.field button:focus-visible { background: #fff6df; outline: none; }
.login-options {
  margin: 17px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5f706d;
  font-size: 10px;
}
.remember input { width: 16px; height: 16px; accent-color: var(--deep-2); }
.forgot {
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 4px 0;
  background: transparent;
  color: #6f4e12;
  font-size: 9px;
}
.forgot:hover,
.forgot:focus-visible { border-bottom-color: #b88a2b; outline: none; }
.login-error {
  display: none;
  margin: 16px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(167,66,54,.2);
  border-radius: 9px;
  background: rgba(167,66,54,.065);
  color: var(--danger);
  font-size: 10px;
  line-height: 1.5;
}
.login-error:not(:empty) { display: block; }
.login-error.success {
  border-color: rgba(24,112,79,.2);
  background: rgba(24,112,79,.065);
  color: #18704f;
}
.login-button {
  width: 100%;
  min-height: 55px;
  margin-top: 17px;
  padding: 0 20px;
  border: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gold);
  color: var(--deep);
  box-shadow: 0 10px 22px rgba(190,140,43,.2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.login-button:hover,
.login-button:focus-visible {
  background: var(--gold-bright);
  box-shadow: 0 14px 28px rgba(190,140,43,.25);
  transform: translateY(-2px);
  outline: none;
}
.login-button:hover span:last-child,
.login-button:focus-visible span:last-child { transform: translateX(4px); }
.login-button span:last-child { transition: transform .2s ease; }
.login-button:disabled {
  opacity: .52;
  cursor: wait;
  box-shadow: none;
  transform: none;
}
.login-button:disabled span:last-child { transform: none; }
.preview-button {
  width: 100%;
  min-height: 45px;
  margin-top: 10px;
  border: 1px solid #d8d0be;
  border-radius: 9px;
  background: transparent;
  color: #625944;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.preview-button:hover,
.preview-button:focus-visible { border-color: var(--gold); color: var(--deep); outline: none; }

@media (max-width: 1100px) and (min-width: 781px) {
  .login-page { grid-template-columns: minmax(355px, 43fr) minmax(480px, 57fr); }
  .login-brand-panel { padding-left: 34px; padding-right: 34px; }
  .login-brand img { width: 70px; height: 70px; }
  .login-brand-copy strong { font-size: 15px; }
  .login-brand-copy small { font-size: 7px; letter-spacing: .09em; }
  .brand-message h1 { font-size: clamp(43px, 5vw, 56px); }
  .login-form-panel { padding-left: 34px; padding-right: 34px; }
}

@media (max-width: 780px) {
  .login-page { display: block; }
  .login-brand-panel {
    min-height: 0;
    padding: 20px max(20px, 5vw) 22px;
  }
  .login-brand-panel::before { width: 260px; right: -145px; top: -90px; }
  .login-brand-panel::after { display: none; }
  .login-house-visual img { object-position: center 76%; }
  .login-house-visual::before {
    background: linear-gradient(
      to bottom,
      rgba(0,47,52,.88),
      rgba(0,47,52,.8) 55%,
      rgba(0,47,52,.7)
    );
  }
  .login-brand { gap: 12px; }
  .login-brand img { width: 56px; height: 56px; }
  .login-brand-copy strong { font-size: 14px; }
  .login-brand-copy small { font-size: 7.5px; letter-spacing: .09em; }
  .login-brand-copy b { margin-top: 7px; padding: 4px 7px; font-size: 6px; }
  .brand-message { margin: 19px 0 0; padding: 0; }
  .brand-intro,
  .workspace-benefits,
  .security-note { display: none; }
  .brand-message .eyebrow { margin-bottom: 8px; font-size: 7px; }
  .brand-message h1 {
    font-size: clamp(27px, 7vw, 34px);
    line-height: 1.05;
    letter-spacing: -.025em;
  }
  .brand-message h1 br { display: none; }
  .brand-message h1 em::before { content: " "; }
  .login-form-panel {
    min-height: 0;
    padding: 24px max(16px, 5vw) 36px;
    display: block;
  }
  .login-card {
    width: min(540px, 100%);
    margin: 0 auto;
    padding: 30px clamp(22px, 6vw, 32px);
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(0,47,52,.09);
  }
  .login-card::before { margin-bottom: 21px; }
  .login-card h2 { font-size: clamp(36px, 10vw, 43px); }
  .form-intro { margin-bottom: 23px; }
  .field { min-height: 54px; }
}

@media (max-width: 430px) {
  .login-brand-panel { padding-left: 18px; padding-right: 18px; }
  .login-brand img { width: 52px; height: 52px; }
  .login-brand-copy strong { font-size: 13px; }
  .login-brand-copy small { font-size: 7px; }
  .login-form-panel { padding: 20px 14px 30px; }
  .login-card { padding: 27px 20px; }
  .login-options { align-items: flex-start; flex-direction: column; gap: 11px; }
  .login-button { margin-top: 15px; }
}

@media (max-width: 375px) {
  .login-brand-panel { padding-left: 15px; padding-right: 15px; }
  .login-brand { gap: 10px; }
  .login-brand img { width: 50px; height: 50px; }
  .login-brand-copy strong { font-size: 12px; }
  .login-brand-copy small { font-size: 6.5px; letter-spacing: .065em; }
  .login-card { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
