:root {
  --bg: #F3EFE8;
  --surface: #FFFCF7;
  --ink: #22313A;
  --muted: #5B6A73;
  --line: #DED5C8;
  --navy: #1E3A4F;
  --teal: #0F766E;
  --gold: #A77A2E;
  --danger: #B3413F;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(15, 118, 110, .08), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(167, 122, 46, .10), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}
.login-shell {
  width: min(980px, 100%);
  min-height: 570px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(34, 49, 58, .12);
}
.login-brand {
  background: linear-gradient(150deg, #1E3A4F 0%, #162C3D 70%, #102331 100%);
  color: #E9EEF0;
  padding: 46px 42px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-brand::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
  right: -110px; bottom: -100px;
}
.brand-mark {
  width: 56px; height: 56px;
  border-radius: 15px;
  background: var(--gold);
  color: #162C3D;
  display: grid; place-items: center;
  font-family: Georgia, serif;
  font-size: 28px; font-weight: 700;
}
.brand-copy { margin-top: auto; position: relative; z-index: 1; }
.eyebrow {
  font-size: 10px;
  letter-spacing: .22em;
  font-weight: 800;
  color: #C9A55A;
}
.brand-copy h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 38px;
  letter-spacing: -.04em;
  margin: 8px 0 12px;
}
.brand-copy p {
  max-width: 350px;
  color: #B9C8D0;
  font-size: 14px;
  line-height: 1.65;
}
.brand-foot {
  margin-top: 36px;
  font-size: 10.5px;
  color: #8FA4B0;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 14px;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 38px 34px;
}
.login-card { width: min(340px, 100%); }
.login-card h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 29px;
  letter-spacing: -.03em;
  margin: 7px 0 4px;
}
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
form { display: grid; gap: 7px; margin-top: 22px; }
label { font-size: 11.5px; font-weight: 700; color: #3D4E59; margin-top: 8px; }
input {
  width: 100%;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #FFFEFB;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 52px; }
.password-wrap button {
  position: absolute; right: 6px; top: 6px;
  height: 31px; padding: 0 9px;
  border: 0; border-radius: 7px;
  background: #F1ECE4;
  color: #4D5D66;
  font-size: 10.5px; font-weight: 700;
  cursor: pointer;
}
#login-submit {
  height: 44px;
  border: 0;
  border-radius: 9px;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
}
#login-submit:hover { background: #0B5F59; }
#login-submit:disabled { opacity: .65; cursor: wait; }
.login-error {
  background: #FBEDEC;
  border: 1px solid #EBC4C1;
  border-left: 3px solid var(--danger);
  color: #7C2B29;
  border-radius: 7px;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 8px;
}
.login-note {
  margin-top: 18px;
  font-size: 10.5px;
  color: #8A969D;
  text-align: center;
}
@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; min-height: auto; }
  .login-brand { min-height: 220px; padding: 28px; }
  .brand-copy h1 { font-size: 31px; }
  .brand-copy p { font-size: 13px; }
  .brand-foot { display: none; }
  .login-panel { padding: 28px 24px 32px; }
}
