
.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 31, 58, .28);
  backdrop-filter: blur(6px);
}
.auth-backdrop[hidden] {
  display: none;
}
.auth-dialog {
  width: min(430px, 100%);
  position: relative;
  border: 1px solid #dbe5f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(18, 36, 61, .22);
  padding: 30px;
  color: #12243d;
  font-family: "Segoe UI", Arial, sans-serif;
}
.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe5f3;
  border-radius: 8px;
  background: #fff;
  color: #5d6b82;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.auth-close:hover {
  color: #1667ff;
  border-color: #bcd7ff;
  background: #f4f8ff;
}
.auth-panel[hidden] {
  display: none;
}
.auth-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: 0;
}
.auth-subtitle {
  margin: 0 0 24px;
  color: #6b7890;
  font-size: 15px;
  line-height: 1.45;
}
.auth-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.auth-field span {
  font-size: 14px;
  font-weight: 800;
  color: #12243d;
}
.auth-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d7dfeb;
  border-radius: 8px;
  padding: 0 14px;
  color: #12243d;
  background: #fff;
  font: inherit;
  outline: none;
}
.auth-field input:focus {
  border-color: #1667ff;
  box-shadow: 0 0 0 4px rgba(22, 103, 255, .12);
}
.auth-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}
.auth-primary,
.auth-secondary {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.auth-primary {
  border: 1px solid #1667ff;
  color: #fff;
  background: linear-gradient(180deg, #236fff, #0f55df);
  box-shadow: 0 14px 28px rgba(22, 103, 255, .18);
}
.auth-secondary {
  border: 1px solid #d7dfeb;
  color: #1667ff;
  background: #fff;
}
.auth-secondary:hover,
.auth-primary:hover {
  filter: brightness(.98);
}
.auth-message {
  min-height: 22px;
  margin: 16px 0 0;
  color: #647089;
  font-size: 14px;
  line-height: 1.4;
}
.auth-message.is-ok {
  color: #0b8f54;
  font-weight: 700;
}
.auth-message.is-bad {
  color: #b42318;
  font-weight: 700;
}
.account-name {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid #dce5f1;
  color: #12243d;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
@media (max-width: 520px) {
  .auth-dialog {
    padding: 24px 20px;
  }
  .auth-actions {
    display: grid;
  }
  .account-name {
    max-width: 112px;
    margin-left: 10px;
    padding-left: 10px;
  }
}
