#home-auth {
  box-sizing: border-box; border: 0; margin: 0; max-width: none; max-height: 100dvh;
  padding: 1rem 0; background: transparent; color: inherit;
}
#home-auth[open] {
  position: fixed; inset: 0; width: 100%; height: 100dvh;
  display: flex; align-items: safe center; overflow-y: auto;
}
#home-auth::backdrop { background: rgba(255,255,255,.8); backdrop-filter: blur(7.5px); }
#home-auth .standart_windowins { width: min(100%, 48rem); flex: none; }
#home-auth .standart_window_close {
  border: 0; padding: 0; font-size: 0; color: #fe9564; background: transparent; cursor: pointer;
}
#home-auth .standart_window_close::before, #home-auth .standart_window_close::after {
  content: ""; position: absolute; width: 1.4rem; height: 1px;
  top: 50%; left: 50%; background: currentColor;
}
#home-auth .standart_window_close::before { transform: translate(-50%,-50%) rotate(45deg); }
#home-auth .standart_window_close::after { transform: translate(-50%,-50%) rotate(-45deg); }
#home-auth .standart_window_title_ins { text-align: center; }
#home-auth .home-auth-note {
  position: fixed; top: 5px; left: 5px; z-index: 1; margin: 0; padding: 3px 7px;
  border: 1px solid #a77c30; border-radius: 4px; background: #fff7de; color: #563f1c;
  font: 600 11px/1.4 Arial,sans-serif;
}
#home-auth input:disabled { opacity: 1; }
#home-auth .checkbox label { display: block; cursor: default; }
#home-auth .checkbox.checked label::before { background: #fe9564; }
#home-auth .checkbox.checked label::after {
  content: ""; position: absolute; top: .28rem; left: .53rem; width: .55rem; height: .97rem;
  border: solid white; border-width: 0 .16rem .16rem 0; transform: rotate(45deg);
}
#home-auth .rb_line:has(> .rb_submit) { margin-bottom: 0; }
#home-auth input.rb_submit {
  width: 100%; height: 6.4rem; margin: 0; padding: .6rem 2rem; border: none;
  border-radius: 1.2rem; background: #ff7d41; color: white; cursor: pointer;
  font: bold 1.8rem/1.2 Arial,sans-serif; text-align: center;
}
#home-auth input.rb_submit:hover { filter: brightness(.96); }
#home-auth .home-account-links {
  margin-top: 2rem; display: flex; justify-content: center; align-items: center;
  gap: 1.6rem; color: #b5bfc1; font: 400 1.4rem/2rem Arial,sans-serif;
}
#home-auth .home-account-links a, #home-auth .captcha_sci_reload { color: #ed824e; }
#home-auth .captcha_divimg > span, #home-auth .captcha_sci_img > span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit;
  color: #151515; font: 700 3.4rem/1 Arial,sans-serif;
  background: repeating-linear-gradient(48deg,#eee 0 4px,#d8d8d8 4px 7px,#f8f8f8 7px 10px);
}
#home-auth .captcha_divimg:nth-child(3) > span, #home-auth .captcha_sci_img:nth-child(3n+2) > span {
  background: radial-gradient(ellipse at 20% 40%,#e4e4e4 0 25%,transparent 26%) 0 0 / 24px 20px #f6f6f6;
}
#home-auth .captcha_sci_img:nth-child(3n+3) > span {
  background: repeating-linear-gradient(-52deg,#d9d9d9 0 4px,#f7f7f7 4px 11px,#eee 11px 15px);
}
#home-auth .captcha_sci_img > span { font-size: 2.9rem; }
body:has(#home-auth[open]) > .home-chat { visibility: hidden; }
@media (max-width: 640px) {
  #home-auth .standart_windowins { width: 100%; max-width: 100%; }
  #home-auth input.rb_submit { height: 6rem; font-size: 1.6rem; }
}

.home-chat {
  position: fixed; z-index: 800; bottom: 0; right: 40px; display: flex; align-items: center;
  box-sizing: border-box; width: min(300px, calc(100vw - 56px)); height: 40px; padding: 0 16px;
  border: 0; border-radius: 8px 30px 0 0; background: #001b37; color: white;
  box-shadow: 0 2px 10px #0003; text-align: left; cursor: pointer; overflow: hidden;
  font: 400 15px/1.3 Arial,sans-serif;
}
.home-chat::after {
  content: ""; position: absolute; right: 0; top: 0; width: 26px; height: 34px;
  background: #20ba39; border-bottom-left-radius: 100%;
}
.home-chat-panel {
  width: min(336px, calc(100vw - 24px)); box-sizing: border-box; margin: auto;
  border: 0; border-radius: 14px; background: #fff; color: #102433; padding: 24px;
  font: 16px/1.5 Arial,sans-serif;
}
.home-chat-panel h2 { margin: 0 0 12px; font: bold 22px/1.3 Arial,sans-serif; }
.home-chat-panel p { margin-block: 0 12px; }
.home-chat-panel::backdrop { background: #182a3833; }
.home-chat-panel button { background: #001b37; border: 0; border-radius: 6px; color: white; padding: 8px 16px; cursor: pointer; font: inherit; }

@media (max-width: 640px) {
  #home-auth[open] .standart_windowins { position: relative; top: 2px; }
  #home-auth[open][data-view="register"] .standart_windowins { top: 9px; }
}
