.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(11, 27, 58, 0.26);
  backdrop-filter: blur(10px);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
}

.auth-modal.is-open {
  display: grid;
}

.auth-panel {
  position: relative;
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid #e5edf8;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 70px rgba(37, 99, 235, 0.18);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #64748b;
  background: #eff6ff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border-radius: 14px;
  background: #eff6ff;
}

.auth-tabs button,
.auth-submit {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.auth-tabs button {
  height: 40px;
  border-radius: 11px;
  color: #2563eb;
  background: transparent;
  font-weight: 800;
}

.auth-tabs button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.auth-form {
  display: none;
  padding-top: 22px;
}

.auth-form.is-active {
  display: block;
}

.auth-form h2 {
  margin: 0 0 8px;
  color: #0b1b3a;
  font-size: 25px;
  font-weight: 900;
}

.auth-form p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.auth-form label {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #dce8f8;
  border-radius: 12px;
  color: #0b1b3a;
  background: #fff;
  font: inherit;
  outline: none;
}

.auth-form input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
}

.auth-error {
  min-height: 20px;
  display: block;
  margin: 4px 0 10px;
  color: #dc2626;
  font-size: 13px;
}

.auth-submit {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
  font-weight: 900;
}
