:root {
  color-scheme: light;
  --login-ink: #26352c;
  --login-muted: #70776f;
  --login-border: #e3e5dc;
  --login-accent: #a44f31;
  --login-accent-hover: #873d25;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }

.login-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 32px;
  background: #f4f1e8;
  color: var(--login-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(280px, .88fr) minmax(380px, 1fr);
  width: min(100%, 900px);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #e1dfd4;
  border-radius: 18px;
  background: #fffefa;
  box-shadow: 0 20px 60px rgba(42, 48, 39, .1), 0 2px 7px rgba(42, 48, 39, .035);
}

.login-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 38px 30px;
  background: #20382d;
  color: #f7f4ec;
}

.login-brand { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 650; letter-spacing: .01em; }
.login-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(249, 246, 237, .35); border-radius: 50%; color: #f4d4ae; font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.login-brand-copy { max-width: 310px; margin: auto 0; padding: 44px 0; }
.login-brand-copy .login-kicker { color: #c7aa84; }
.login-brand-copy h2 { margin: 12px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(29px, 3vw, 38px); font-weight: 500; line-height: 1.12; letter-spacing: -.025em; }
.login-brand-copy > p:last-child { max-width: 260px; margin: 0; color: #d0d8d0; font-size: 13px; line-height: 1.65; }
.login-brand-note { color: #aab8ad; font-size: 10px; letter-spacing: .04em; }
.login-kicker { margin: 0; color: var(--login-accent); font-size: 9px; font-weight: 750; letter-spacing: .14em; }

.login-card { display: flex; flex-direction: column; justify-content: center; padding: 54px clamp(32px, 6vw, 62px); }
.login-header { margin-bottom: 30px; }
.login-header h1 { margin: 8px 0 7px; color: #29362d; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 600; letter-spacing: -.025em; }
.login-header > p:last-child { margin: 0; color: var(--login-muted); font-size: 12px; line-height: 1.5; }
#loginForm { display: grid; gap: 17px; }
.login-field { display: grid; gap: 7px; }
.login-field label { color: #465148; font-size: 11px; font-weight: 650; }
.login-field input, .login-field select { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid var(--login-border); border-radius: 7px; outline: none; background: #fff; color: #26352c; font-size: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.login-field input::placeholder { color: #a0a49c; }
.login-field input:focus, .login-field select:focus { border-color: #728b78; box-shadow: 0 0 0 3px rgba(76, 111, 83, .12); }
.login-message { min-height: 18px; margin: -5px 0 -8px; color: #a33e35; font-size: 11px; line-height: 1.5; }
.login-submit { min-height: 46px; margin-top: 2px; padding: 11px 16px; border: 0; border-radius: 7px; background: var(--login-accent); color: white; cursor: pointer; font-size: 12px; font-weight: 700; transition: background-color .15s ease, transform .15s ease; }
.login-submit:hover { background: var(--login-accent-hover); }
.login-submit:active { transform: translateY(1px); }
.login-submit:disabled { opacity: .65; cursor: wait; }
.login-back { align-self: flex-start; margin-top: 24px; color: #526e59; font-size: 11px; font-weight: 600; text-decoration: none; text-underline-offset: 3px; }
.login-back:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid #78917e; outline-offset: 3px; }

@media (max-width: 700px) {
  .login-page { align-items: start; padding: 18px; }
  .login-shell { grid-template-columns: 1fr; width: min(100%, 480px); min-height: auto; margin: auto; border-radius: 14px; }
  .login-brand-panel { min-height: 175px; padding: 22px 24px; }
  .login-brand-copy { padding: 20px 0 4px; }
  .login-brand-copy h2 { margin: 7px 0 0; font-size: 24px; }
  .login-brand-copy > p:last-child, .login-brand-note { display: none; }
  .login-card { padding: 30px 24px 26px; }
  .login-header { margin-bottom: 23px; }
}

@media (max-width: 360px) {
  .login-page { padding: 10px; }
  .login-card { padding-inline: 19px; }
  .login-brand-panel { padding-inline: 19px; }
}
