.home-auth-dialog {
  width: min(480px, calc(100vw - 32px));
  max-width: none;
  max-height: min(610px, calc(100vh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: #171716;
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(28,24,20,.24), 0 2px 10px rgba(28,24,20,.08);
}
.home-auth-dialog::backdrop { background: rgba(22,20,18,.54); backdrop-filter: blur(8px); }
.home-auth-shell { max-height: min(610px, calc(100vh - 32px)); padding: 28px 30px 22px; overflow: auto; }
.home-auth-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.home-auth-head > div { display: grid; gap: 4px; }
.home-auth-head span { color: #928b83; font-size: 10px; font-weight: 750; }
.home-auth-head strong { color: #171716; font-size: 20px; font-weight: 950; letter-spacing: -.025em; }
.home-auth-head > button {
  width: 34px; height: 34px; display: grid; place-items: center; padding: 0 0 2px;
  color: #69635d; background: #f4f1ed; border: 0; border-radius: 50%; cursor: pointer; font-size: 22px; line-height: 1;
}
.home-auth-head > button:hover,.home-auth-head > button:focus-visible { outline: 0; color: #fff; background: #252320; }
.home-auth-reason { margin: 15px 0 20px; padding: 10px 12px; color: #6d554d; background: #fff6f2; border-left: 3px solid #f05a1f; border-radius: 0 9px 9px 0; font-size: 11px; font-weight: 750; line-height: 1.55; }
.home-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 22px; padding: 4px; background: #f4f1ed; border-radius: 12px; }
.home-auth-tabs button { min-height: 38px; padding: 0 16px; color: #8b847d; background: transparent; border: 0; border-radius: 9px; cursor: pointer; font: 850 12px/1 inherit; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.home-auth-tabs button.active { color: #201e1b; background: #fff; box-shadow: 0 2px 8px rgba(34,30,26,.08); }
.home-auth-form { display: grid; gap: 15px; }
.home-auth-form > label { display: grid; gap: 7px; }
.home-auth-form > label > span:first-child { color: #514c47; font-size: 10px; font-weight: 850; }
.home-auth-form input { width: 100%; height: 46px; padding: 0 14px; color: #1f1d1a; background: #fbfaf8; border: 1px solid #ded8d1; border-radius: 10px; outline: 0; font: 700 13px/1 inherit; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.home-auth-form input::placeholder { color: #aca59e; font-weight: 620; }
.home-auth-form input:focus { background: #fff; border-color: #292622; box-shadow: 0 0 0 3px rgba(41,38,34,.08); }
.home-auth-form input[aria-invalid="true"] { border-color: #e45743; box-shadow: 0 0 0 3px rgba(228,87,67,.09); }
.home-auth-password { position: relative; display: block; }
.home-auth-password input { padding-right: 58px; }
.home-auth-password button { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); height: 30px; padding: 0 8px; color: #79726b; background: transparent; border: 0; border-radius: 7px; cursor: pointer; font-size: 10px; font-weight: 800; }
.home-auth-password button:hover,.home-auth-password button:focus-visible { color: #1f1d1a; background: #f0ece7; outline: 0; }
.home-auth-consent { display: flex !important; align-items: flex-start; gap: 8px; color: #817a73; font-size: 9px; font-weight: 650; line-height: 1.55; }
.home-auth-consent input { width: 14px; height: 14px; margin: 0; accent-color: #22201d; }
.home-auth-status { min-height: 16px; margin: -2px 0 -3px; color: #b14434; font-size: 10px; font-weight: 750; line-height: 1.55; }
.home-auth-status.is-success { color: #2d7856; }
.home-auth-submit { min-height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 18px; color: #fff; background: #23211e; border: 0; border-radius: 11px; cursor: pointer; font-size: 12px; font-weight: 900; box-shadow: 0 10px 22px rgba(35,33,30,.13); }
.home-auth-submit:hover,.home-auth-submit:focus-visible { background: #f05a1f; outline: 0; }
.home-auth-submit:disabled { cursor: wait; opacity: .58; }
.home-auth-submit i { font-size: 16px; font-style: normal; }
.home-auth-success { min-height: 300px; place-content: center; justify-items: center; gap: 10px; padding: 28px; text-align: center; }
.home-auth-success:not([hidden]) { display: grid; }
.home-auth-success > span { width: 52px; height: 52px; display: grid; place-items: center; color: #fff; background: #2d7856; border-radius: 50%; font-size: 22px; font-weight: 900; }
.home-auth-success strong { margin-top: 4px; font-size: 18px; font-weight: 950; }
.home-auth-success p { max-width: 330px; margin: 0; color: #817a73; font-size: 11px; line-height: 1.7; }
.home-auth-success b { color: #24211e; word-break: break-all; }
.home-auth-success button { min-width: 160px; min-height: 38px; margin-top: 8px; color: #fff; background: #24211e; border: 0; border-radius: 9px; cursor: pointer; font-size: 11px; font-weight: 850; }
.home-auth-privacy { margin: 16px 0 0; color: #aaa39c; font-size: 9px; line-height: 1.55; text-align: center; }
@media (max-width: 560px) {
  .home-auth-dialog { width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
  .home-auth-shell { max-height: calc(100vh - 24px); padding: 24px 24px 20px; }
}
