.cabinet-auth {
  color-scheme: light;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  margin: 0;
  padding: clamp(16px, 5vw, 48px);
  box-sizing: border-box;
  background: #e9eee8;
  color: #172f25;
  font: 16px/1.45 system-ui, sans-serif;
}
.cabinet-auth * { box-sizing: border-box; }
.auth-panel {
  width: min(100%, 430px);
  padding: clamp(24px, 7vw, 42px);
  border: 1px solid #d5e0d6;
  border-radius: 22px;
  background: #fcfdfb;
  box-shadow: 0 16px 52px #182f2520;
}
.auth-panel h1 { margin: 0 0 24px; font-size: clamp(26px, 6vw, 34px); line-height: 1.15; }
.auth-panel label { display: block; margin: 0 0 6px; font-weight: 600; }
.auth-panel input {
  width: 100%; min-height: 46px; margin-bottom: 14px; padding: 10px 12px;
  border: 1px solid #879e8e; border-radius: 9px; color: inherit; background: #fff; font: inherit;
}
.auth-button {
  display: block; width: 100%; min-height: 46px; padding: 10px;
  border: 1px solid #1b4936; border-radius: 9px; background: #1b4936; color: #fff;
  text-align: center; font: inherit; font-weight: 650; cursor: pointer;
}
.auth-button.secondary { background: #fff; color: #244e3b; }
.auth-button:disabled { opacity: .6; cursor: default; }
.auth-message { margin: 12px 0 0; color: #8a3026; min-height: 1.5em; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.auth-top a, .auth-text-button { color: #264f3c; }
.auth-text-button { min-height: 44px; padding: 4px; background: none; border: 0; text-decoration: underline; font: inherit; cursor: pointer; }
.auth-key-list { margin: 0 0 20px; padding-left: 20px; overflow-wrap: anywhere; }
.auth-help { font-size: .9rem; color: #415a4c; }
.cabinet-auth :focus-visible { outline: 3px solid #4d876b; outline-offset: 3px; }
.cabinet-signin { background: #f5f7f4; }
.cabinet-signin .auth-panel {
  width: min(100%, 496px);
  padding: clamp(22px, 5vw, 42px);
  border-color: #d7dfd8;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.cabinet-signin .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 25px;
  font-size: clamp(23px, 5vw, 34px);
  font-weight: 750;
}
.cabinet-signin .brand span {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 2px solid #245e49;
  border-radius: 8px;
  color: #245e49;
  font-size: 27px;
}
.cabinet-signin input { border-color: #829789; }
.cabinet-signin #login .auth-button { margin-top: 6px; }
.cabinet-signin #passkey { margin-top: 14px; }
.cabinet-signin .auth-message:empty { margin: 0; min-height: 0; }
