:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef1ef;
  color: #17211e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }

.login-shell {
  display: grid;
  grid-template-columns: minmax(260px, 38%) minmax(360px, 1fr);
  min-height: 100vh;
}

.login-brand {
  align-items: center;
  background: #0a1713;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.login-brand img {
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(0,0,0,.34);
  height: auto;
  max-width: 290px;
  width: 76%;
}

.login-brand div { display: grid; gap: 5px; margin-top: 24px; }
.login-brand span { color: #d4a744; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.login-brand strong { font-family: Georgia, serif; font-size: clamp(24px, 3vw, 38px); font-weight: 500; }

.login-panel {
  align-self: center;
  justify-self: center;
  max-width: 460px;
  padding: 40px 28px;
  width: 100%;
}

.login-heading { margin-bottom: 30px; }
.login-heading p { color: #66716d; line-height: 1.5; margin: 8px 0; }
.login-heading p:first-of-type { color: #23724e; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.login-heading h1 { font-family: Georgia, serif; font-size: clamp(34px, 5vw, 50px); font-weight: 500; margin: 8px 0; }
.secure-mark { color: #24a66a; }

form { display: grid; gap: 18px; }
label { color: #46514d; display: grid; font-size: 13px; font-weight: 750; gap: 7px; }
input {
  background: #fff;
  border: 1px solid #cbd3cf;
  border-radius: 6px;
  min-height: 50px;
  outline: none;
  padding: 11px 13px;
}
input:focus { border-color: #b8892f; box-shadow: 0 0 0 3px rgba(184,137,47,.14); }

button { border: 0; cursor: pointer; }
.primary {
  background: #b8892f;
  border-radius: 6px;
  color: #fff;
  font-weight: 850;
  min-height: 50px;
  padding: 11px 16px;
}
.primary:hover { background: #9e7427; }
.text-button { background: transparent; color: #5f6c67; padding: 4px; text-align: left; }
.message { color: #a03939; font-size: 13px; line-height: 1.5; margin: 0; min-height: 20px; }
.message.ok { color: #23724e; }

.recovery-result { background: #fff; border: 1px solid #d4a744; border-radius: 8px; padding: 22px; }
.recovery-result span { color: #6b5426; display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.recovery-result code { display: block; font-size: 16px; margin: 14px 0; overflow-wrap: anywhere; }
.recovery-result p { color: #626e69; font-size: 13px; line-height: 1.5; }
.recovery-result .primary { width: 100%; }

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: 210px; padding: 24px; }
  .login-brand img { max-width: 150px; width: 42%; }
  .login-brand div { margin-top: 12px; }
  .login-brand strong { font-size: 22px; }
  .login-panel { padding: 30px 20px 50px; }
}
