:root {
  color-scheme: light;
  --ink: #221b1c;
  --muted: #776a6b;
  --paper: #f7f1eb;
  --surface: #fffdf9;
  --wine: #6f2e43;
  --wine-dark: #4d1d2d;
  --gold: #bd9557;
  --line: #ded3ca;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.08fr) minmax(440px, .92fr); }

.brand-panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(42px, 6vw, 86px); color: white;
  background:
    radial-gradient(circle at 74% 20%, rgba(190,147,87,.23), transparent 29%),
    linear-gradient(150deg, #371722 0%, #672a40 53%, #4b1f30 100%);
}
.brand-panel::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255,255,255,.14); pointer-events: none; }
.brand-copy { position: relative; z-index: 2; max-width: 650px; }
.eyebrow { margin: 0 0 50px; color: #e8cfaa; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5.2vw, 76px); font-weight: 400; line-height: 1.16; letter-spacing: -.035em; }
.brand-description { max-width: 530px; margin: 30px 0 0; color: rgba(255,255,255,.7); font-size: 17px; line-height: 1.8; }
.secure-note { position: relative; z-index: 2; display: flex; gap: 10px; align-items: center; margin: 0; color: rgba(255,255,255,.62); font-size: 13px; }
.secure-note span { width: 8px; height: 8px; border-radius: 50%; background: #a8c7b2; box-shadow: 0 0 0 5px rgba(168,199,178,.12); }

.jewel-art { position: absolute; right: -5%; bottom: 4%; width: min(48vw, 630px); aspect-ratio: 1; opacity: .72; }
.orbit { position: absolute; inset: 17%; border: 1px solid rgba(238,208,166,.24); border-radius: 50%; transform: rotate(-18deg) scaleY(.48); }
.orbit-two { inset: 5%; transform: rotate(24deg) scaleY(.58); }
.gem { position: absolute; width: 74px; aspect-ratio: 1; transform: rotate(45deg); border: 1px solid rgba(255,255,255,.35); background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(190,149,87,.12)); box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.gem::after { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(255,255,255,.24); }
.gem-one { left: 42%; top: 26%; width: 104px; }
.gem-two { left: 17%; top: 55%; width: 54px; }
.gem-three { right: 14%; bottom: 20%; width: 68px; }

.form-panel { display: grid; place-items: center; padding: 42px; background: var(--surface); }
.form-wrap { width: min(100%, 460px); }
.mobile-brand { display: none; margin-bottom: 32px; color: var(--wine); font-family: Georgia, serif; font-size: 20px; letter-spacing: .12em; }
.section-label { margin: 0 0 16px; color: var(--wine); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 48px; font-weight: 500; letter-spacing: -.025em; }
.form-intro { margin: 12px 0 38px; color: var(--muted); line-height: 1.7; }
form > label { display: block; margin: 0 0 9px; font-size: 14px; font-weight: 700; }
.field { position: relative; margin-bottom: 23px; }
input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; outline: 0; color: var(--ink); background: #fff; transition: .18s ease; }
input:focus { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(111,46,67,.09); }
input::placeholder { color: #afa4a0; }
.password-field input { padding-right: 72px; }
.password-field button { position: absolute; right: 8px; top: 8px; height: 38px; padding: 0 10px; border: 0; color: var(--wine); background: transparent; cursor: pointer; }
.error-message { min-height: 22px; margin: -7px 0 12px; color: #a23e43; font-size: 13px; }
.submit-button { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 56px; padding: 0 20px; border: 0; border-radius: 12px; color: white; background: var(--wine); cursor: pointer; transition: .18s ease; }
.submit-button:hover { background: var(--wine-dark); transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: .64; transform: none; }
.help-text { margin: 26px 0 0; color: #9a8f8b; font-size: 12px; text-align: center; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .form-panel { min-height: 100vh; padding: 28px 22px; background: linear-gradient(180deg, #fffaf5, #f7f1eb); }
  .mobile-brand { display: block; }
}

@media (max-width: 480px) {
  h2 { font-size: 40px; }
  .form-intro { margin-bottom: 30px; }
}

