.auth-modal[hidden] { display: none; }
.auth-modal__panel[hidden] { display: none !important; }
.auth-modal {
  align-items: center;
  background: rgba(16, 24, 40, .66);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 1200;
}
body.auth-modal-open { overflow: hidden; }
.auth-modal__dialog {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(16, 24, 40, .25);
  max-height: calc(100vh - 36px);
  max-width: 520px;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  width: 100%;
}
.auth-modal__close {
  align-items: center;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 7px;
  color: #475467;
  cursor: pointer;
  display: flex;
  height: 36px;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
}
.auth-modal__brand { align-items: center; display: flex; gap: 11px; margin-bottom: 20px; padding-right: 45px; }
.auth-modal__brand > span {
  align-items: center; background: #155eef; border-radius: 9px; color: #fff; display: flex;
  flex: 0 0 auto; height: 44px; justify-content: center; width: 44px;
}
.auth-modal__brand div { display: grid; gap: 2px; }
.auth-modal__brand strong { color: #101828; font-size: 1.48rem; font-weight: 720; }
.auth-modal__brand small { color: #667085; font-size: 1.16rem; }
.auth-modal__tabs {
  background: #f2f4f7; border-radius: 8px; display: grid; gap: 4px;
  grid-template-columns: repeat(2, 1fr); margin-bottom: 20px; padding: 4px;
}
.auth-modal__tabs button {
  background: transparent; border: 0; border-radius: 6px; color: #667085; cursor: pointer;
  font-size: 1.35rem; font-weight: 700; min-height: 40px;
}
.auth-modal__tabs button.is-active { background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .1); color: #155eef; }
.auth-modal[data-mode="forgot"] .auth-modal__tabs,
.auth-modal[data-mode="forgot"] .auth-modal__social { display: none; }
.auth-modal__heading h2 { color: #101828; font-size: 2.05rem; font-weight: 720; margin: 0 0 5px; }
.auth-modal__heading p { color: #667085; font-size: 1.28rem; line-height: 1.5; margin: 0 0 18px; }
.auth-modal__form { display: grid; gap: 13px; }
.auth-modal__form label > span { color: #344054; display: block; font-size: 1.24rem; font-weight: 700; margin-bottom: 6px; }
.auth-modal__form label > span em { color: #667085; font-size: 1.08rem; font-style: normal; font-weight: 600; }
.auth-modal__input {
  align-items: center; border: 1px solid #d0d5dd; border-radius: 7px; display: flex; min-height: 44px; overflow: hidden;
}
.auth-modal__input:focus-within { border-color: #155eef; box-shadow: 0 0 0 3px rgba(21, 94, 239, .12); }
.auth-modal__input i { color: #98a2b3; margin-left: 12px; width: 17px; }
.auth-modal__input input { border: 0; color: #101828; font-size: 1.36rem; min-width: 0; outline: 0; padding: 10px 12px; width: 100%; }
.auth-modal__form label small, .auth-modal__captcha small { color: #d92d20; display: block; font-size: 1.13rem; margin-top: 5px; }
.auth-modal__options { align-items: center; display: flex; font-size: 1.2rem; justify-content: space-between; }
.auth-modal__remember { align-items: center; color: #475467; display: flex; gap: 6px; }
.auth-modal__options a { color: #155eef; font-weight: 700; text-decoration: none; }
.auth-modal__submit {
  align-items: center; background: #155eef; border: 0; border-radius: 8px; color: #fff; cursor: pointer;
  display: flex; font-size: 1.4rem; font-weight: 700; gap: 8px; justify-content: center; min-height: 46px; padding: 11px 16px;
}
.auth-modal__submit:hover { background: #0f4fd1; }
.auth-modal__link-button {
  align-items: center; background: transparent; border: 0; color: #155eef; cursor: pointer;
  display: inline-flex; font-size: 1.22rem; font-weight: 700; gap: 7px; justify-content: center; padding: 4px 0;
}
.auth-modal__link-button:hover { text-decoration: underline; }
.auth-modal__password-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-modal__captcha { overflow-x: auto; }
.auth-modal__alert { background: #fef3f2; border: 1px solid #fecdca; border-radius: 7px; color: #b42318; font-size: 1.22rem; margin-bottom: 12px; padding: 10px 12px; }
.auth-modal__alert--success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.auth-modal__social { border-top: 1px solid #e4e7ec; margin-top: 18px; padding-top: 16px; text-align: center; }
.auth-modal__social > span { color: #667085; font-size: 1.16rem; }
.auth-modal__social div { display: flex; gap: 8px; margin-top: 10px; }
.auth-modal__social a {
  align-items: center; border: 1px solid #d0d5dd; border-radius: 7px; color: #344054; display: flex;
  flex: 1; font-size: 1.25rem; font-weight: 700; gap: 7px; justify-content: center; min-height: 40px; text-decoration: none;
}
@media (max-width: 560px) {
  .auth-modal { padding: 10px; }
  .auth-modal__dialog { max-height: calc(100vh - 20px); padding: 20px 16px; }
  .auth-modal__password-grid { grid-template-columns: 1fr; }
  .auth-modal__brand strong { font-size: 1.32rem; }
  .auth-modal__brand small { font-size: 1.08rem; }
  .auth-modal__heading h2 { font-size: 1.72rem; }
  .auth-modal__options,
  .auth-modal__social div { align-items: stretch; flex-direction: column; gap: 10px; }
  .auth-modal__remember { min-height: 24px; }
}
