:root {
  --navy: #07182d;
  --navy-soft: #0d2948;
  --gold: #d6a84f;
  --gold-light: #f2d58f;
  --ink: #172438;
  --muted: #6c7889;
  --line: #dfe5ec;
  --surface: rgba(255, 255, 255, .97);
  --danger: #bb3444;
  --success: #16835c;
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(214, 168, 79, .18), transparent 28%),
    radial-gradient(circle at 90% 88%, rgba(57, 126, 182, .2), transparent 32%),
    linear-gradient(145deg, #061426, #0b2745 58%, #123653);
  display: grid;
  place-items: center;
  padding: 28px;
}

button, input, select { font: inherit; }

.auth-shell {
  width: min(1080px, 100%);
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.brand-panel {
  position: relative;
  overflow: hidden;
  padding: 58px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-panel::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -210px;
  top: -180px;
  border: 1px solid rgba(242, 213, 143, .25);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(242, 213, 143, .035), 0 0 0 120px rgba(242, 213, 143, .025);
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 213, 143, .65);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 22px;
}

.brand-copy { position: relative; max-width: 520px; }
.eyebrow { color: var(--gold-light); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.brand-copy h1 { margin: 18px 0 16px; font-size: clamp(35px, 5vw, 58px); line-height: 1.12; font-weight: 750; }
.brand-copy p { margin: 0; max-width: 470px; color: rgba(255, 255, 255, .72); line-height: 1.8; font-size: 15px; }
.brand-foot { position: relative; color: rgba(255, 255, 255, .55); font-size: 12px; }

.form-panel {
  padding: 38px 44px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.language-row { display: flex; justify-content: flex-end; margin-bottom: 22px; }
.language-select { border: 0; color: var(--muted); background: transparent; cursor: pointer; outline: none; }
.form-panel h2 { margin: 0 0 8px; font-size: 29px; letter-spacing: -.02em; }
.form-desc { margin: 0 0 25px; color: var(--muted); font-size: 14px; }
.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 7px; color: #3f4c5e; font-size: 13px; font-weight: 650; }
.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus { border-color: #b68b3d; box-shadow: 0 0 0 4px rgba(214, 168, 79, .16); }
.field-hint { display: block; margin-top: 5px; color: #8993a1; font-size: 11px; }
.captcha-grid { display: grid; grid-template-columns: 1fr 130px; gap: 10px; }
.captcha-image { width: 130px; height: 46px; border: 1px solid var(--line); border-radius: 11px; background: #f2f7ff; cursor: pointer; object-fit: cover; }
.captcha-help { margin: 5px 0 0; text-align: right; color: #8993a1; font-size: 11px; }

.submit-button {
  width: 100%;
  height: 48px;
  margin-top: 5px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(110deg, #0b2745, #154a73);
  box-shadow: 0 12px 24px rgba(7, 24, 45, .2);
  font-weight: 750;
  cursor: pointer;
  transition: transform .15s, box-shadow .18s, opacity .18s;
}
.submit-button:hover { transform: translateY(-1px); box-shadow: 0 15px 28px rgba(7, 24, 45, .26); }
.submit-button:disabled { opacity: .65; cursor: wait; transform: none; }
.form-message { min-height: 22px; margin: 12px 0 0; font-size: 13px; text-align: center; }
.form-message.error { color: var(--danger); }
.form-message.success { color: var(--success); }
.form-links { margin-top: 13px; display: flex; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; }
.form-links.split { justify-content: space-between; }
.form-links a { color: #174d78; font-weight: 700; text-decoration: none; }
.form-links a:hover { text-decoration: underline; }
.security-note { margin: 18px 0 0; color: #929ba8; font-size: 11px; text-align: center; }

@media (max-width: 860px) {
  body { padding: 16px; }
  .auth-shell { grid-template-columns: 1fr; min-height: auto; }
  .brand-panel { min-height: 250px; padding: 34px; gap: 45px; }
  .brand-copy h1 { font-size: 34px; margin: 12px 0; }
  .brand-foot { display: none; }
  .form-panel { padding: 30px 25px 34px; }
}

@media (max-width: 420px) {
  body { padding: 0; background: #fff; }
  .auth-shell { border: 0; border-radius: 0; box-shadow: none; }
  .brand-panel { min-height: 210px; padding: 27px 23px; }
  .brand-copy p { display: none; }
  .form-panel { padding: 26px 21px 32px; }
  .captcha-grid { grid-template-columns: 1fr 116px; }
  .captcha-image { width: 116px; }
}
