/* xmas.css — 크리스마스 시즌 테마 (2026 겨울)
   · 끄려면 index.html 에서 xmas.css / xmas.js 두 줄만 지우면 원래(가을 → 기본) 모습으로 돌아감 */

/* ---------- 로그인 화면: 눈 내리는 겨울 밤 + 빨강·초록 ---------- */
.login-overlay {
  background:
    radial-gradient(110% 55% at 50% 0%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #f3f8ff 0%, #e3eefc 55%, #d5e4f7 100%) !important;
}
.login-overlay .autumn-leaf { color: #93c5fd !important; opacity: 1 !important; font-size: 26px !important; text-shadow: 0 0 2px #fff, 0 0 8px rgba(147,197,253,.9); }
.login-overlay .leaf-2, .login-overlay .leaf-5, .login-overlay .leaf-7 { font-size: 20px !important; color: #bfdbfe !important; }
.login-overlay .btn-login { background: linear-gradient(135deg, #dc2626, #991b1b) !important; border: 0 !important; box-shadow: 0 10px 22px -10px rgba(153,27,27,.7) !important; }
.login-overlay .btn-login:active { filter: brightness(.95); }
.login-overlay .login-card { border-color: #fecaca !important; box-shadow: 0 24px 48px -16px rgba(153, 27, 27, .25), 0 2px 8px rgba(0,0,0,.04) !important; position: relative; }
/* 카드 위쪽 빨강·초록 리본 줄 */
.login-overlay .login-card::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 4px; border-radius: 0 0 4px 4px;
  background: repeating-linear-gradient(90deg, #dc2626 0 18px, #fff 18px 22px, #15803d 22px 40px, #fff 40px 44px);
}
.login-brand .login-logo { background: linear-gradient(135deg, #dc2626, #991b1b) !important; color: #fff !important; box-shadow: 0 8px 18px -6px rgba(185,28,28,.55) !important; position: relative; }
.login-brand .login-logo::after { content: "🎄"; position: absolute; right: -8px; bottom: -8px; font-size: 22px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.15)); }
.login-brand .autumn-edition-badge { background: #fee2e2 !important; color: #b91c1c !important; border: 1px solid #fecaca !important; font-weight: 900 !important; }
.login-input-wrap > i { color: #b91c1c !important; }
.login-input-wrap .input-control:focus { border-color: #dc2626 !important; box-shadow: 0 0 0 4px rgba(220, 38, 38, .12) !important; }
.login-remember input { accent-color: #dc2626 !important; }
.login-options .btn-link { color: #b91c1c !important; }
.login-temp-pw { background: #f0fdf4 !important; border-color: #86efac !important; }
.login-temp-pw-icon { background: #dcfce7 !important; color: #15803d !important; }
.login-temp-pw-body b { color: #14532d !important; }
.login-temp-pw-body span { color: #166534 !important; }
.login-temp-pw-body small { color: #15803d !important; }
.login-temp-pw-code { color: #14532d !important; border-color: #86efac !important; }

/* ---------- 앱 상단: 반짝이는 전구 줄 ---------- */
.app-header { position: relative; }
.app-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; pointer-events: none; z-index: 2;
  background:
    radial-gradient(circle at 50% 70%, #ef4444 0 3px, transparent 3.5px) 0 0 / 56px 9px repeat-x,
    radial-gradient(circle at 50% 70%, #22c55e 0 3px, transparent 3.5px) 14px 0 / 56px 9px repeat-x,
    radial-gradient(circle at 50% 70%, #facc15 0 3px, transparent 3.5px) 28px 0 / 56px 9px repeat-x,
    radial-gradient(circle at 50% 70%, #3b82f6 0 3px, transparent 3.5px) 42px 0 / 56px 9px repeat-x;
  filter: drop-shadow(0 0 3px rgba(250,204,21,.6));
  animation: xmasTwinkle 1.8s ease-in-out infinite alternate;
}
.app-header::after {   /* 전구를 잇는 전선 */
  content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: rgba(21,128,61,.35); pointer-events: none; z-index: 1;
}
@keyframes xmasTwinkle { 0% { opacity: .55; } 100% { opacity: 1; } }

/* ---------- 오늘 할 일: 크리스마스 카운트다운 ---------- */
.xmas-dday { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: -.1px; vertical-align: 1px; box-shadow: 0 2px 6px -2px rgba(185,28,28,.6); }
.xmas-dday.today { background: linear-gradient(135deg, #15803d, #166534); animation: xmasPop 1.2s ease-in-out infinite; }
@keyframes xmasPop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  .app-header::before, .xmas-dday.today { animation: none !important; }
}
/* 눈송이는 카드 앞으로 (반투명 · 눌러도 통과) — 폰에서는 카드가 화면을 거의 다 덮어서 뒤에 있으면 안 보임 */
.login-overlay .autumn-leaves-container { z-index: 3 !important; pointer-events: none !important; }
.login-overlay .autumn-leaf { opacity: .75 !important; }
