/* HKDC 20th Anniversary — theatre-poster login page */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --gold: #D4AF37;
  --gold-dim: rgba(212, 175, 55, 0.35);
  --ink: #0F0D0B;
  --ink-2: #1F1B16;
  --paper: #F5F1EA;
  --paper-2: #FAFAF7;
}
html, body { height: 100%; }
body {
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- full-screen poster background ---- */
.poster-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(124, 58, 237, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #0F0D0B 0%, #1F1B16 50%, #0F0D0B 100%);
}
.poster-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(212,175,55,0.03) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(212,175,55,0.03) 0 1px, transparent 1px 80px);
  pointer-events: none;
}
.poster-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.35;
  mix-blend-mode: luminosity;
}
/* soft particle glow */
.particle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-dim) 0%, transparent 70%);
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-30px) scale(1.1); opacity: 0.7; }
}

/* ---- layout ---- */
.stage {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 16px 48px;
}

/* ---- header / logo ---- */
.brand {
  text-align: center; margin-bottom: 28px;
  animation: fadeDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.brand img { height: 64px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.brand .brand-name {
  font-size: 14px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-top: 10px;
}

/* ---- title ---- */
.title-block { text-align: center; margin-bottom: 36px; }
.title-main {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 700; letter-spacing: 0.06em;
  color: var(--paper);
  text-shadow: 0 2px 20px rgba(212, 175, 55, 0.25);
  animation: fadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.title-sub {
  font-size: clamp(14px, 2.5vw, 18px);
  color: var(--gold); letter-spacing: 0.3em;
  margin-top: 10px;
  animation: fadeUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.title-rule {
  width: 60px; height: 1px; margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: fadeUp 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---- login card ---- */
.login-card {
  width: 100%; max-width: 420px;
  background: rgba(31, 27, 22, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 18px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(212, 175, 55, 0.12);
  animation: fadeUp 2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.login-card h2 {
  font-size: 16px; font-weight: 600; letter-spacing: 0.2em;
  color: var(--gold); text-align: center; margin-bottom: 24px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; letter-spacing: 0.1em;
  color: rgba(245, 241, 234, 0.7); margin-bottom: 8px;
}
.field select, .field input {
  width: 100%; padding: 14px 16px;
  background: rgba(15, 13, 11, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  color: var(--paper); font-size: 16px; font-family: inherit;
  letter-spacing: 0.1em;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none;
}
.field select:focus, .field input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D4AF37' fill='none' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  cursor: pointer;
}
.field input { text-align: center; letter-spacing: 0.4em; font-size: 20px; }
.field input::placeholder { color: rgba(245, 241, 234, 0.25); letter-spacing: 0.4em; }

.btn-enter {
  width: 100%; padding: 15px;
  margin-top: 6px;
  background: linear-gradient(135deg, #D4AF37 0%, #B8942A 100%);
  color: var(--ink); border: none; border-radius: 10px;
  font-size: 16px; font-weight: 700; letter-spacing: 0.3em;
  cursor: pointer; font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-enter:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35); }
.btn-enter:active { transform: translateY(0); }
.btn-enter:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.error-msg {
  margin-top: 14px; padding: 10px 14px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 8px; color: #fca5a5;
  font-size: 14px; text-align: center;
  animation: shake 0.4s ease;
  display: none;
}
.error-msg.show { display: block; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.login-hint {
  margin-top: 18px; text-align: center;
  font-size: 12px; color: rgba(245, 241, 234, 0.4); letter-spacing: 0.08em;
}
.login-hint a { color: var(--gold); text-decoration: none; }
.login-hint a:hover { text-decoration: underline; }

/* ---- footer ---- */
.footer {
  margin-top: 40px; text-align: center;
  font-size: 11px; letter-spacing: 0.25em;
  color: rgba(245, 241, 234, 0.3);
  animation: fadeUp 2.4s ease both;
}

/* ---- animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- responsive ---- */
@media (max-width: 480px) {
  .stage { padding: 20px 14px 36px; }
  .login-card { padding: 26px 20px 22px; }
  .brand img { height: 52px; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .particle, .brand, .title-main, .title-sub, .title-rule, .login-card, .footer {
    animation: none !important;
  }
}
