:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: #05080d;
  color: #eef3f8;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(205, 159, 61, .12), transparent 29rem),
    linear-gradient(135deg, #05080d 0%, #080d15 58%, #05070b 100%);
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, #000, transparent 72%);
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
  min-height: 100vh;
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(42px, 8vw, 120px);
  border-right: 1px solid rgba(225, 184, 91, .12);
}

.login-brand img {
  width: min(360px, 72%);
  max-height: 150px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 18px 40px rgba(222, 174, 64, .12));
}

.brand-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  left: -190px;
  top: 50%;
  border: 1px solid rgba(225, 184, 91, .14);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 110px rgba(225, 184, 91, .08), inset 0 0 90px rgba(225, 184, 91, .04);
}

.brand-kicker,
.eyebrow {
  margin: 28px 0 12px;
  color: #d9ae4f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
}

.login-brand h1 {
  max-width: 630px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.brand-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: #8290a3;
  font-size: 16px;
  line-height: 1.7;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 46px;
  color: #69788d;
  font-size: 12px;
  letter-spacing: .04em;
}

.security-note span { color: #cda243; font-size: 8px; }

.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 7vw, 108px);
  background: rgba(8, 13, 21, .82);
  backdrop-filter: blur(18px);
}

.login-utility {
  position: absolute;
  top: 26px;
  right: clamp(30px, 5vw, 72px);
  left: clamp(30px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-utility a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #738196;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .2s;
}

.login-utility a:hover { color: #d6ad52; }

.login-utility select {
  height: 33px;
  padding: 0 10px;
  border: 1px solid #202b39;
  border-radius: 4px;
  outline: 0;
  background: #090f18;
  color: #9ca9ba;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.login-utility select:focus-visible { border-color: #b98d36; box-shadow: 0 0 0 3px rgba(205, 162, 67, .11); }

#login-form { width: 100%; max-width: 450px; margin: auto; }

#login-form header { margin-bottom: 38px; }
#login-form .eyebrow { margin-top: 0; }

#login-form h2 {
  margin: 0 0 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

#login-form header > p:last-child { margin: 0; color: #78879a; font-size: 14px; }

#login-form label {
  display: block;
  margin: 20px 0 8px;
  color: #aeb9c7;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .025em;
}

#login-form input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #263241;
  border-radius: 7px;
  outline: 0;
  background: #090f18;
  color: #f5f7fa;
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}

#login-form input:focus {
  border-color: #b98d36;
  box-shadow: 0 0 0 3px rgba(205, 162, 67, .11);
}

.password-field { position: relative; }
.password-field input { padding-right: 68px !important; }

#toggle-password {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #bd9848;
  font-size: 11px;
  cursor: pointer;
}

.login-error {
  min-height: 19px;
  margin: 16px 0 5px;
  color: #ff6e80;
  font-size: 12px;
  line-height: 1.5;
}

.login-submit {
  width: 100%;
  height: 51px;
  border: 1px solid #d1a744;
  border-radius: 7px;
  background: linear-gradient(135deg, #d7ad51, #a97720);
  color: #080b10;
  cursor: pointer;
  font: 700 13px/1 Inter, "Segoe UI", sans-serif;
  letter-spacing: .04em;
  box-shadow: 0 12px 28px rgba(172, 121, 30, .17);
  transition: transform .15s, filter .15s;
}

.login-submit:hover { filter: brightness(1.07); transform: translateY(-1px); }
.login-submit:disabled { cursor: wait; filter: saturate(.5); opacity: .7; transform: none; }

.login-panel footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 450px;
  margin: 44px auto 0;
  color: #536176;
  font-size: 10px;
  letter-spacing: .04em;
}

.status { display: flex; align-items: center; gap: 7px; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #35d69b; box-shadow: 0 0 8px #35d69b; }

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: 32vh; padding: 42px 30px 34px; border-right: 0; border-bottom: 1px solid rgba(225,184,91,.12); }
  .login-brand img { width: 240px; max-height: 88px; }
  .brand-kicker { margin-top: 16px; }
  .login-brand h1 { font-size: 34px; }
  .brand-copy, .security-note { display: none; }
  .login-panel { min-height: 68vh; padding: 78px 26px 42px; }
  .login-utility { top: 24px; right: 26px; left: 26px; }
}
