/* ===== New Year login theme (opt‑in via body.newyear-login) ===== */

body.newyear-login {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, #1f2937 0, transparent 55%),
    radial-gradient(circle at 90% 0%, #1d4ed8 0, transparent 60%),
    linear-gradient(135deg, #020617 0%, #020617 40%, #020617 100%);
  color: #0b1020;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Make Centrim panels transparent in New Year mode */
body.newyear-login .login-wrap,
body.newyear-login .form-block,
body.newyear-login .login-bg-ver,
body.newyear-login .dark-bg-ver {
  background: transparent !important;
  box-shadow: none;
}

/* Fireworks canvas for New Year */
body.newyear-login #fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* ===== Holiday login theme (opt‑in via .holiday-theme) ===== */

body.holiday-login {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.1),
      transparent 55%
    ),
    linear-gradient(135deg, #020617 0%, #0b1b3f 45%, #061529 100%);
}

/* Make Centrim panels transparent in holiday mode */
body.holiday-login .login-wrap,
body.holiday-login .form-block,
body.holiday-login .login-bg-ver,
body.holiday-login .dark-bg-ver {
  background: transparent !important;
  box-shadow: none;
}

/* Snow canvas */
body.holiday-login #snow-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* ==== Hero Christmas tree (left side) ==== */
body.holiday-login .holiday-tree-wrap {
  position: fixed;
  left: 6%;
  bottom: 8%;
  width: 180px;
  height: 260px;
  pointer-events: none;
  z-index: 1;
}

body.holiday-login .holiday-tree {
  position: relative;
  width: 100%;
  height: 100%;
}

/* soft halo behind tree */
body.holiday-login .tree-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(56, 189, 248, 0.35),
    transparent 65%
  );
  filter: blur(2px);
  opacity: 0.9;
}

/* trunk */
body.holiday-login .tree-trunk {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 30px;
  height: 42px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #78350f, #451a03);
  border-radius: 8px;
}

/* tree layers */
body.holiday-login .tree-layer {
  position: absolute;
  left: 50%;
  transform-origin: 50% 100%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 90px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 70px solid #047857;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
  animation: tree-sway 4s ease-in-out infinite alternate;
}

body.holiday-login .tree-layer.layer-1 {
  bottom: 34px;
  border-bottom-color: #15803d;
  animation-delay: 0s;
}
body.holiday-login .tree-layer.layer-2 {
  bottom: 78px;
  border-bottom-color: #16a34a;
  transform: translateX(-50%) scale(0.88);
  animation-delay: 0.05s;
}
body.holiday-login .tree-layer.layer-3 {
  bottom: 118px;
  border-bottom-color: #22c55e;
  transform: translateX(-50%) scale(0.75);
  animation-delay: 0.1s;
}

@keyframes tree-sway {
  0% {
    transform: translateX(-50%) rotate(-1deg);
  }
  100% {
    transform: translateX(-50%) rotate(1.4deg);
  }
}

/* top star */
body.holiday-login .tree-top-star {
  position: absolute;
  left: 50%;
  bottom: 168px;
  width: 22px;
  height: 22px;
  transform: translateX(-50%) rotate(18deg);
  background: radial-gradient(
    circle at 50% 35%,
    #fefce8 0,
    #facc15 45%,
    #b45309 100%
  );
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.95);
  animation: top-star-glow 2.2s ease-in-out infinite alternate;
}

@keyframes top-star-glow {
  0% {
    transform: translateX(-50%) rotate(18deg) scale(1);
    opacity: 0.85;
  }
  100% {
    transform: translateX(-50%) rotate(18deg) scale(1.12);
    opacity: 1;
  }
}

/* small twinkling stars around tree */
body.holiday-login .holiday-stars {
  position: absolute;
  inset: -10% -10% auto auto;
}

body.holiday-login .tree-star-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #f9fafb;
  box-shadow: 0 0 10px rgba(248, 250, 252, 0.95);
  animation: star-twinkle 2.4s ease-in-out infinite alternate;
}

body.holiday-login .tree-star-dot.s1 {
  top: 8%;
  left: 12%;
  animation-delay: 0.1s;
}
body.holiday-login .tree-star-dot.s2 {
  top: 2%;
  left: 55%;
  animation-delay: 0.6s;
}
body.holiday-login .tree-star-dot.s3 {
  top: 20%;
  left: 82%;
  animation-delay: 1s;
}
body.holiday-login .tree-star-dot.s4 {
  top: 34%;
  left: 65%;
  animation-delay: 1.4s;
}
body.holiday-login .tree-star-dot.s5 {
  top: 40%;
  left: 18%;
  animation-delay: 1.9s;
}

@keyframes star-twinkle {
  0% {
    opacity: 0.35;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1.8);
  }
}

/* hide tree on very small screens */
@media (max-width: 768px) {
  body.holiday-login .holiday-tree-wrap {
    display: none;
  }
}

/* Position near bottom-left, but subtle */
body.holiday-login .xmas-tree-hero {
  position: fixed;
  left: 20%;
  bottom: -230px;
  z-index: 1;
  pointer-events: none;
}

/* Base tree */
body.holiday-login .xmas-tree {
  position: relative;
  width: 100%;
  height: 100%;
}

body.holiday-login .xmas-tree img {
  height: 600px;
}

/* Trunk */
body.holiday-login .xmas-trunk {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 26px;
  height: 40px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #7c2d12, #431407);
  border-radius: 7px;
}

/* Layers - slimmer, more minimal */
body.holiday-login .xmas-layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 60px solid #047857;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
  animation: tree-sway-soft 5s ease-in-out infinite alternate;
}

body.holiday-login .xmas-layer.l1 {
  bottom: 34px;
  border-bottom-color: #0f766e;
}
body.holiday-login .xmas-layer.l2 {
  bottom: 74px;
  border-bottom-color: #14a38b;
  transform: translateX(-50%) scale(0.86);
}
body.holiday-login .xmas-layer.l3 {
  bottom: 112px;
  border-bottom-color: #22c55e;
  transform: translateX(-50%) scale(0.72);
}

@keyframes tree-sway-soft {
  0% {
    transform: translateX(-50%) rotate(-0.4deg) scale(1);
  }
  100% {
    transform: translateX(-50%) rotate(0.7deg) scale(1);
  }
}

/* Top star - smaller, sharper */
body.holiday-login .xmas-star {
  position: absolute;
  left: 50%;
  bottom: 158px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%) rotate(15deg);
  background: radial-gradient(
    circle at 50% 35%,
    #fefce8 0,
    #facc15 45%,
    #b45309 100%
  );
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.9);
  animation: star-pulse 2.4s ease-in-out infinite alternate;
}

@keyframes star-pulse {
  0% {
    opacity: 0.8;
    transform: translateX(-50%) rotate(15deg) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) rotate(15deg) scale(1.08);
  }
}

/* Minimal animated lights on tree */
body.holiday-login .xmas-light {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  box-shadow: 0 0 10px currentColor;
  animation: light-twinkle 2.2s ease-in-out infinite alternate;
}

body.holiday-login .xmas-light.xl1 {
  bottom: 52px;
  left: 32%;
  color: #f97316;
  animation-delay: 0.1s;
}
body.holiday-login .xmas-light.xl2 {
  bottom: 64px;
  left: 66%;
  color: #facc15;
  animation-delay: 0.6s;
}
body.holiday-login .xmas-light.xl3 {
  bottom: 94px;
  left: 40%;
  color: #22c55e;
  animation-delay: 1s;
}
body.holiday-login .xmas-light.xl4 {
  bottom: 110px;
  left: 63%;
  color: #38bdf8;
  animation-delay: 1.4s;
}
body.holiday-login .xmas-light.xl5 {
  bottom: 132px;
  left: 50%;
  color: #f97316;
  animation-delay: 1.8s;
}

@keyframes light-twinkle {
  0% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* Hide tree on very small widths */
@media (max-width: 768px) {
  body.holiday-login .xmas-tree-hero {
    display: none;
  }
}

.holiday-theme {
  position: relative;
  overflow: hidden;
}

/* Gradient night sky */
.holiday-login .holiday-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.1),
      transparent 55%
    ),
    linear-gradient(135deg, #020617 0%, #0b1b3f 45%, #061529 100%);
}

/* Stars layer */
.holiday-login .holiday-theme::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(
      circle at 12% 14%,
      rgba(255, 255, 255, 0.8) 0,
      transparent 55%
    ),
    radial-gradient(
      circle at 32% 20%,
      rgba(241, 245, 249, 0.7) 0,
      transparent 55%
    ),
    radial-gradient(
      circle at 78% 12%,
      rgba(248, 250, 252, 0.9) 0,
      transparent 55%
    ),
    radial-gradient(
      circle at 64% 30%,
      rgba(148, 163, 184, 0.6) 0,
      transparent 55%
    ),
    radial-gradient(
      circle at 20% 36%,
      rgba(226, 232, 240, 0.6) 0,
      transparent 55%
    );
  mix-blend-mode: screen;
  opacity: 0.85;
}

/* Snow canvas (must match the id in the HTML script below) */
.holiday-theme #snow-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.logo-box .logo {
  position: relative;
}

.holiday-login .logo-boxx .logo::before {
  content: "";
  position: absolute;
  top: -32px;
  left: -18px;
  width: 50px;
  height: 50px;
  background-image: url(../img/xmas/xmas-hat-new.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  transform: rotate(356deg);
  /* display: none; */
}

.holiday-login .login-wrap {
  position: relative;
}

.holiday-login .login-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url(../img/xmas/xmas-bg.jpg) !important;
  /* background-position: bottom center !important; */
  background-size: cover !important;
  opacity: 0.25;
}

.holiday-login .newyear-login .login-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: url(../img/xmas/newyear-bg.jpg) !important;
  /* background-position: bottom center !important; */
  background-size: cover !important;
  opacity: 0.25;
}

.holiday-login:has(.cl-x-mas-label) {
  display: block !important;
}

body:not(.holiday-login) .cl-x-mas-label {
    display: none;
}

.newyear-login .cl-x-mas-label {
    display: none;
}

.newyear-login .logo-box .logo::before {
    display: none;
}

.newyear-text {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;

  background: linear-gradient(
    90deg,
    #ffd27d,
    #ff9f43,
    #ffd27d,
    #4dd2ff,
    #7cffc4
  );
  background-size: 300% 300%;

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: festiveGradient 5s ease infinite;

  /* soft festive glow for dark background */
  text-shadow: 0 0 12px rgba(255, 210, 125, 0.35);
}

@keyframes festiveGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.newyear-text {
  animation:
    festiveGradient 5s ease infinite,
    shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@media (max-width: 480px) {
  .newyear-text {
    font-size: 18px;
  }
}

.cl-new-year-text {
    top: -62px;
}

.cl-new-year-text h2 {
    font-size: 28px;
    color: #fff;
}




