/* ── Auth modal ───────────────────────────────────────────── */
#auth-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
#auth-modal-backdrop.open { opacity: 1; pointer-events: all; }
#auth-modal {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  margin: 1rem;
  position: relative;
  box-shadow: 0 16px 56px rgba(0,0,0,.12);
}
#auth-modal h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 1.5rem; color: #111; }
#auth-modal .tab-row { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
#auth-modal .tab-btn {
  flex: 1; padding: .5rem; font-size: .85rem; font-weight: 600;
  background: transparent; border: 1px solid #e8e8e8;
  color: #999; border-radius: 8px; cursor: pointer;
  transition: all .15s;
}
#auth-modal .tab-btn.active {
  background: #111; border-color: #111;
  color: #fff;
}
#auth-modal .form-field { margin-bottom: 1rem; }
#auth-modal .form-field label {
  display: block; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: #999; margin-bottom: .35rem;
}
#auth-modal .form-field input {
  width: 100%; padding: .75rem 1rem;
  background: #fff; border: 1px solid #e8e8e8;
  color: #111; border-radius: 8px; font-size: 1rem;
  transition: border-color .15s; box-sizing: border-box;
}
#auth-modal .form-field input:focus { outline: none; border-color: #111; }
#auth-modal .submit-btn {
  width: 100%; padding: .85rem; font-size: 1rem; font-weight: 700;
  background: #111; color: #fff;
  border: none; border-radius: 8px; cursor: pointer;
  transition: opacity .15s; margin-top: .5rem;
}
#auth-modal .submit-btn:hover { opacity: .85; }
#auth-modal .submit-btn:disabled { opacity: .4; cursor: not-allowed; }
#auth-modal .auth-msg { font-size: .85rem; margin-top: .75rem; min-height: 1.2em; }
#auth-modal .auth-msg.error { color: #dc2626; }
#auth-modal .auth-msg.success { color: #16a34a; }
#auth-modal .close-btn {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: #999;
  font-size: 1.3rem; cursor: pointer; line-height: 1;
}
