.account-chip.is-guest {
  gap: 6px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.account-chip.is-guest .account-menu-trigger { display: none; }

.account-chip.is-guest .account-avatar {
  order: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: #2774e8;
}

.account-chip.is-guest .account-copy { min-width: auto; }
.account-chip.is-guest .account-copy strong { color: #244164; font-weight: 650; }
.account-chip.is-guest .account-copy small { display: none; }

.account-login-button,
.account-register-button {
  order: 4;
  width: 54px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #2774e8;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.account-login-button:hover { background: #1764d6; }
.account-register-button {
  order: 5;
  color: #1765ce;
  border: 1px solid #bcd5f8;
  background: #fff;
}
.account-register-button:hover { border-color: #78a9ed; background: #eef6ff; }

.home-login-backdrop {
  position: fixed;
  z-index: 1400;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(25, 50, 84, .28);
  backdrop-filter: blur(14px) saturate(.9);
  -webkit-backdrop-filter: blur(14px) saturate(.9);
}

.home-login-dialog {
  position: relative;
  isolation: isolate;
  width: min(456px, calc(100vw - 32px));
  padding: 36px 40px 30px;
  overflow: hidden;
  border: 1px solid #d9e8ff;
  border-radius: 24px;
  color: #172b46;
  background: #fff;
  box-shadow: 0 30px 90px rgba(25, 71, 128, .22);
  animation: home-login-arrive .22s ease-out both;
}

.home-login-dialog::before {
  position: absolute;
  z-index: -1;
  top: -108px;
  right: -92px;
  width: 250px;
  height: 250px;
  border: 46px solid rgba(69, 137, 238, .08);
  border-radius: 50%;
  content: "";
}

.home-login-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid #dce7f5;
  border-radius: 50%;
  color: #6f8098;
  background: rgba(255, 255, 255, .86);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.home-login-close:hover { color: #185fbe; border-color: #bad4f7; background: #f4f8ff; }

.home-login-brand { position: relative; width: 54px; height: 32px; margin-bottom: 18px; }
.home-login-brand i { position: absolute; top: 5px; width: 25px; height: 25px; border: 1.5px solid #397ddb; border-radius: 50%; }
.home-login-brand i:first-child { left: 0; }
.home-login-brand i:nth-child(2) { left: 20px; border-color: #8db9f5; }
.home-login-brand b { position: absolute; top: 7px; left: 4px; width: 6px; height: 6px; border-radius: 50%; background: #2fb6ff; box-shadow: 0 0 0 4px rgba(47, 182, 255, .12); }

.home-login-kicker {
  display: block;
  margin-bottom: 10px;
  color: #2774e8;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
}

.home-login-dialog h2 { margin: 0; color: #142b49; font-size: clamp(27px, 4vw, 34px); line-height: 1.17; letter-spacing: -.035em; }
.home-login-dialog > p { margin: 9px 0 21px; color: #718198; font-size: 13px; line-height: 1.65; }

.home-login-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dce8f8;
  border-radius: 13px;
  background: #f3f7fd;
}

.home-login-methods button,
.home-login-submethods button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.home-login-methods button {
  min-height: 38px;
  border-radius: 9px;
  color: #718198;
  background: transparent;
  font-size: 12px;
}

.home-login-methods button.active {
  color: #1765ce;
  background: #fff;
  box-shadow: 0 3px 12px rgba(35, 88, 158, .1);
  font-weight: 750;
}

.home-login-panel { padding-top: 16px; }
.home-register-fields { padding-top: 14px; border-top: 1px solid #e6eef8; }

.home-login-label {
  display: block;
  margin: 0 2px 7px;
  color: #3e5572;
  font-size: 11px;
  font-weight: 700;
}

.home-login-label:not(:first-child) { margin-top: 14px; }
.home-login-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.home-login-label-row .home-login-label { margin-bottom: 0; }
.home-login-label-row button,
.home-reset-back { padding: 0; border: 0; color: #2774e8; background: transparent; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.home-login-label-row button:hover,
.home-reset-back:hover { color: #115fc9; text-decoration: underline; }
.home-reset-fields { padding-top: 14px; }
.home-reset-back { display: block; margin: -2px 0 15px 2px; }

.home-login-field {
  min-height: 47px;
  display: flex;
  align-items: center;
  border: 1px solid #d9e5f5;
  border-radius: 12px;
  background: #f8fbff;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.home-login-field:focus-within {
  border-color: #5893e5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(49, 119, 219, .11);
}

.home-login-field > span {
  flex: 0 0 54px;
  padding-left: 15px;
  color: #3074cf;
  font-size: 12px;
  font-weight: 750;
}

.home-login-field.with-prefix input { border-left: 1px solid #dce7f5; }

.home-login-field input {
  width: 100%;
  min-width: 0;
  height: 45px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  color: #172b46;
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.home-login-field input::placeholder { color: #9baabd; }

.home-login-field.with-password-toggle input { padding-right: 4px; }
.password-visibility {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-right: 3px;
  border: 0;
  border-radius: 10px;
  color: #71839a;
  background: transparent;
  cursor: pointer;
}
.password-visibility:hover { color: #1765ce; background: #eaf3ff; }
.password-visibility svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-visibility.is-visible { color: #1765ce; }
.password-visibility:not(.is-visible) .password-visibility-slash { display: none; }

.home-login-field.with-action input { padding-right: 6px; }
.home-login-field.with-action button {
  flex: 0 0 auto;
  margin-right: 7px;
  min-width: 94px;
  height: 33px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  color: #1765ce;
  background: #eaf3ff;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.home-login-field.with-action button:hover:not(:disabled) { background: #dcecff; }
.home-login-field.with-action button:disabled { color: #91a0b2; background: #edf1f6; cursor: default; }

.home-login-submethods {
  display: flex;
  gap: 18px;
  margin: 13px 2px 14px;
  border-bottom: 1px solid #e6eef8;
}

.home-login-submethods button {
  position: relative;
  padding: 0 0 9px;
  color: #8391a4;
  background: transparent;
  font-size: 11px;
}

.home-login-submethods button.active { color: #1765ce; font-weight: 750; }
.home-login-submethods button.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 3px; background: #2774e8; content: ""; }

.home-login-message {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #f0c9cf;
  border-radius: 10px;
  color: #b63b4b;
  background: #fff5f6;
  font-size: 11px;
  line-height: 1.5;
}

.home-login-message.success { color: #1765ce; border-color: #c5dcfb; background: #f1f7ff; }

.home-login-continue {
  width: 100%;
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #1767d5, #3b87ee);
  box-shadow: 0 10px 24px rgba(36, 111, 216, .22);
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
}

.home-login-continue:hover:not(:disabled) { background: linear-gradient(135deg, #0f5ec9, #2f7de8); transform: translateY(-1px); }
.home-login-continue:disabled { color: #eef4fc; background: #93acd0; box-shadow: none; cursor: wait; }
.home-login-continue b { color: #d9edff; font-size: 18px; }
.home-login-footnote { display: block; margin-top: 14px; color: #8998aa; font-size: 10px; line-height: 1.55; text-align: center; }
body.home-login-open { overflow: hidden; }

.home-login-close:focus-visible,
.home-login-label-row button:focus-visible,
.home-reset-back:focus-visible,
.home-login-methods button:focus-visible,
.home-login-submethods button:focus-visible,
.home-login-field.with-action button:focus-visible,
.password-visibility:focus-visible,
.home-login-continue:focus-visible,
.account-login-button:focus-visible,
.account-register-button:focus-visible { outline: 3px solid rgba(39, 116, 232, .24); outline-offset: 2px; }

@keyframes home-login-arrive { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .account-chip.is-guest .account-copy { display: block; }
  .account-chip.is-guest .account-copy strong { font-size: 10px; }
  .account-chip.is-guest .account-login-button { display: none !important; }
  .account-chip.is-guest .account-register-button { display: none !important; }
  .home-login-backdrop { place-items: start center; padding: 18px 16px; }
  .home-login-dialog { margin: auto 0; padding: 31px 22px 25px; border-radius: 21px; }
  .home-login-dialog h2 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-login-dialog { animation: none; }
  .home-login-continue { transition: none; }
  .home-login-continue:hover:not(:disabled) { transform: none; }
}
.home-login-brand { width: 48px; height: 48px; margin-bottom: 18px; }
.home-login-brand img { width: 48px; height: 48px; display: block; object-fit: contain; }
.home-invite-notice{margin:0 0 12px;padding:10px 12px;border:1px solid #d9d5ff;border-radius:11px;background:#f5f3ff;color:#514bc5;font-size:12px;font-weight:700;line-height:1.5}
