/* ════════════════════════════════
   login.css － 登入彈窗所有樣式
   ════════════════════════════════ */

/* ── 全域遮罩 ── */
#overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(245, 245, 243, .75);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s ease;
}

/* 登入成功後淡出遮罩 */
#overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── 登入卡片 ── */
.login-card {
  width: min(420px, 92vw);
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 2.5rem 2.4rem 2.2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 16px 48px rgba(0,0,0,.1);
  animation: slideUp .35s cubic-bezier(.22,.68,0,1.1) both;
}

/* 使文字和輸入框平行*/
.field{
    display: flex;
    padding: 5px;
}
.inputs{
    margin-left: 5px;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}