:root {
  --canvas: #faf9f6;
  --ink: #171716;
  --muted: #999792;
  --border: #d4d1cb;
  --gold: #c2a26d;
  --danger: #bd6565;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  /* font-family: "Segoe UI", Arial, sans-serif; */
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 55% 45%;
}

/* ========== VISUAL / HERO ========== */
.visual-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.brand-logo {
  position: absolute;
  top: 45px;
  left: 47px;
  width: 150px;
  height: auto;
  display: block;
}

.hero-copy {
  position: absolute;
  left: 48px;
  bottom: 52px;
  width: min(390px, calc(100% - 96px));
  color: #f8f4ec;
}

.hero-rule {
  width: 112px;
  height: 1px;
  margin-bottom: 24px;
  background: rgba(195, 163, 108, .72);
}

.hero-title {
  margin: 0;

  font-size: 31px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -.65px;
}

.hero-title .gold {
  display: block;
  color: #d2ae72;
}

.hero-description {
  max-width: 365px;
  margin: 13px 0 0;
  color: rgba(232, 233, 235, .72);
  font-size: 13px;
  line-height: 1.65;
}

/* ========== LOGIN PANEL ========== */
.login-panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--canvas);
  padding: 116px 40px 122px;
}

.login-card {
  width: min(410px, 100%);
}

h1 {
  margin: 0 0 10px;

  font-size: 28px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.7px;
}

.subtitle {
  margin: 0 0 35px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ========== FORM FIELDS ========== */
.field { margin-bottom: 17px; }
.field.full { grid-column: 1 / -1; }

label {
  display: block;
  margin-bottom: 6px;
  color: #55534f;
  font-size: 13px;
  line-height: 1.2;
}

.input-wrap { position: relative; }

input[type="text"],
input[type="password"],
input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, .18);
  color: #353432;
  padding: 0 14px;
  font-size: 13px;
  transition: border-color .18s, box-shadow .18s;
}

input::placeholder { color: #bbb9b5; opacity: 1; }

input:focus {
  border-color: #aa8b59;
  box-shadow: 0 0 0 3px rgba(194, 162, 109, .15);
}

input[aria-invalid="true"] { border-color: var(--danger); }

.password-input { padding-right: 45px; }

/* ========== TOGGLE PASSWORD ========== */
.toggle-password {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 28px;
  height: 30px;
  transform: translateY(-50%);
  border: 0;
  padding: 5px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #999792;
  cursor: pointer;
}

.toggle-password svg { width: 17px; height: 17px; }
.toggle-password .eye-closed { display: none; }
.toggle-password[aria-pressed="true"] .eye-open { display: none; }
.toggle-password[aria-pressed="true"] .eye-closed { display: block; }

/* ========== FORM OPTIONS ========== */
.form-options {
  margin-top: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #817f7b;
  font-size: 13px;
}

.form-optionssignup {
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #817f7b;
  font-size: 13px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  user-select: none;
}

.remember input {
  appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 1px solid #8e8b86;
  border-radius: 3px;
  background: transparent;
  display: grid;
  place-content: center;
}

.remember input::before {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) scale(0);
  transition: transform .12s ease-in-out;
  margin-top: -2px;
}

.remember input:checked { background: var(--gold); border-color: var(--gold); }
.remember input:checked::before { transform: rotate(-45deg) scale(1); }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== MESSAGES / ERRORS ========== */
.error,
.message {
  min-height: 19px;
  margin: 15px 0 11px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.45;
}

.message.success { color: var(--success); }

/* ========== SUBMIT BUTTON ========== */
.submit {
  width: 100%;
  height: 49px;
  border: 0;
  border-radius: 11px;
  background: #c2a26d;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2px;
  transition: filter .18s, transform .05s;
}

.submit:hover { filter: brightness(.97); }
.submit:active { transform: translateY(1px); }
 .signup-panel {
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      padding: 46px 38px 38px;
      overflow-y: auto;
      background: var(--canvas);
    }

    .signup-card {
      width: min(470px, 100%);
    }

    h1 {
      margin: 0 0 7px;
      /* font-family: Georgia, "Times New Roman", serif; */
      font-size: 28px;
      line-height: 1.25;
      font-weight: 500;
      letter-spacing: -.7px;
    }

    .subtitle {
      margin: 0 0 22px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

/* ========== TABS ========== */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid #c2a26d;
  border-radius: 12px;
  background: #c2a26d;
}

.tab {
  min-height: 41px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background .18s, color .18s, box-shadow .18s;
}

.tab[aria-selected="true"] {
  background: #fff;
  color: #171716;
  box-shadow: 0 1px 5px rgba(42, 36, 26, .1);
}

.tab-panel[hidden] { display: none; }

/* ========== FORM GRID ========== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
  row-gap: 5px;
}

/* ========== SIGN IN / CREATE ACCOUNT ========== */
.create-account,
.sign-in {
  margin: 25px 0 0;
  text-align: center;
  color: #aaa8a4;
  font-size: 13px;
}

.create-account a,
.sign-in a {
  color: #171716;
  font-weight: 500;
  text-decoration: none;
}

.create-account a:hover,
.sign-in a:hover { text-decoration: underline; }

/* ========== FOOTER ========== */
footer {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 28px;
  color: #bbb9b4;
  text-align: center;
  font-size: 12px;
  line-height: 1.65;
}

footer p { margin: 0; }
footer a { margin: 0 7px; }
footer .powered { margin-top: 8px; }
footer .brand { color: #b99a68; }

/* ========== FOCUS VISIBLE ========== */
.tab:focus-visible,
input:focus-visible,
.submit:focus-visible,
.toggle-password:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .page { grid-template-columns: 44% 56%; }
  .visual { background-position: 60% center; }
  .brand-logo { left: 34px; }
  .hero-copy { left: 34px; width: calc(100% - 68px); }
  .hero-title { font-size: 27px; }
  .login-panel,
  .signup-panel { padding-inline: 30px; }
}

@media (max-width: 700px) {
  .page { display: block; }

  .visual {
    min-height: 250px;
    height: 34vh;
    background-size: cover;
    background-position: center 30%;
  }

  .brand-logo { top: 24px; left: 24px; width: 128px; }
  .hero-copy { left: 24px; bottom: 22px; width: calc(100% - 48px); }
  .hero-rule { margin-bottom: 12px; }
  .hero-title { font-size: 24px; line-height: 1.25; }
  .hero-description { display: none; }

  .login-panel {
    min-height: 66vh;
    padding: 44px 24px 150px;
  }

  .signup-panel {
    min-height: 69vh;
    padding: 35px 24px 42px;
  }

  footer { left: 24px; right: 24px; bottom: 24px; }
}

@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .tabs { gap: 3px; }
  .tab { font-size: 12px; }
}

@media (max-width: 420px) {
  .visual { min-height: 220px; height: 30vh; }
  .login-panel { padding-top: 35px; }
  .form-options { gap: 10px; }
}