/* ==========================================================
   kitasocial - Christmas theme for Login + New Order pages
   ต้องใช้คู่กับ christmas.css และ christmas.js
   ========================================================== */

/* ---------- shared bits ---------- */
.xmas-snowcap {                      /* white snow sitting on top of a card */
  position: relative;
}
.xmas-snowcap::before {
  content: "";
  position: absolute;
  left: -6px; right: -6px; top: -14px;
  height: 26px;
  z-index: 3;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 26' preserveAspectRatio='none'%3E%3Cpath d='M0 14 Q10 2 25 8 Q38 0 52 9 Q66 3 80 10 Q96 1 112 9 Q126 4 140 11 Q156 2 172 9 Q186 3 200 10 Q216 1 232 9 Q246 4 260 11 Q276 2 292 9 Q306 3 320 10 Q336 1 352 9 Q366 4 380 10 Q392 5 400 12 V18 Q392 26 380 22 Q372 26 362 21 Q352 26 340 22 Q330 25 318 21 Q306 26 294 22 Q282 25 270 21 Q258 26 246 22 Q234 25 222 21 Q210 26 198 22 Q186 25 174 21 Q162 26 150 22 Q138 25 126 21 Q114 26 102 22 Q90 25 78 21 Q66 26 54 22 Q42 25 30 21 Q18 26 8 21 Q2 22 0 18Z' fill='%23ffffff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 2px rgba(60, 90, 150, .25));
}
.xmas-greeting {
  display: inline-block;
  margin-bottom: 6px;
  font-family: "Mountains of Christmas", "Prompt", serif;
  font-size: 26px;
  font-weight: 700;
  color: #d62839;
}
.xmas-btn-red {
  position: relative;
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(90deg, #d62839, #ff5b5b) !important;
  box-shadow: 0 6px 18px rgba(214, 40, 57, .35);
}
.xmas-btn-red:hover { filter: brightness(1.06); }
.xmas-btn-red::after {               /* little snow cap on the button */
  content: "";
  position: absolute;
  top: -4px; left: 12px; right: 12px;
  height: 8px;
  border-radius: 8px 8px 5px 5px;
  background: #fff;
}
.xmas-hat-sm {
  position: absolute;
  width: 30px; height: 30px;
  transform: rotate(-22deg);
  pointer-events: none;
  z-index: 3;
}

/* ==========================================================
   LOGIN PAGE
   ========================================================== */
.xmas-login-on .login-bg-image { display: none; }
.xmas-login-on {
  font-family: "Prompt", "Source Sans Pro", sans-serif;
}
.xmas-login-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(84, 132, 255, .45) 0%, rgba(84, 132, 255, 0) 55%),
    radial-gradient(ellipse at 10% 100%, rgba(230, 57, 70, .25) 0%, rgba(230, 57, 70, 0) 50%),
    linear-gradient(180deg, #0a1330 0%, #12245a 55%, #1c3a7c 100%);
}
.xmas-login-sky::before {           /* stars */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 120px 80px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 200px 150px, #cfe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 300px 40px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 380px 120px, #fff7d1 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 190px, #fff 50%, transparent 51%);
  background-size: 420px 220px;
  opacity: .75;
}
.xmas-login-scene {
  position: absolute;
  right: 3%;
  bottom: 40px;
  width: 420px;
  max-width: 34vw;
  opacity: .95;
}
.xmas-login-tree-left {
  position: absolute;
  left: 4%;
  bottom: 60px;
  width: 140px;
  max-width: 14vw;
}
.xmas-login-ground {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 110px;
}
.xmas-login-on.auth-login-form {
  background: transparent !important;
  height: 100vh;
}
.xmas-login-on .card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
  overflow: visible;
}
.xmas-login-on .card-body { padding: 2.2rem 2rem 1.8rem; }
.xmas-login-on .site-logo { position: relative; display: inline-block; }
.xmas-login-on .site-logo a { position: relative; display: inline-block; }
.xmas-login-on .site-logo .xmas-hat-sm { top: -6px; left: 20px; }
.xmas-login-on .card-title h5 { color: #24324a; font-weight: 600; }
.xmas-login-on .form-control {
  border-radius: 10px;
  height: 44px;
}
.xmas-login-on .form-control:focus {
  border-color: #d62839;
  box-shadow: 0 0 0 3px rgba(214, 40, 57, .15);
}
.xmas-login-on .btn-primary {
  height: 46px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
}
.xmas-login-on .text-muted { color: #d6e2ff !important; }
.xmas-login-on .text-muted a { color: #ffd36b; font-weight: 600; }
.xmas-login-on .custom-control-label::before { border-radius: 4px; }
.xmas-login-on .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #d62839;
  border-color: #d62839;
}
.xmas-login-on .float-right.small { color: #d62839; }
.xmas-top-lights {                    /* lights hanging at the top of the screen */
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 5;
}

/* ==========================================================
   NEW ORDER PAGE
   ========================================================== */
.xmas-order-header { position: relative; }
.xmas-hat-host { position: relative; display: inline-block; }
.xmas-hat-wrap { position: absolute; top: -12px; left: 14px; width: 30px; height: 30px; z-index: 5; pointer-events: none; }
.xmas-hat-wrap .xmas-hat-sm { position: static; }
.xmas-order-header .xmas-lights { top: calc(100% - 10px); height: 20px; z-index: 20; }
.xmas-order-header .xmas-lights::before { top: -14px; }

.xmas-order-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 34px;
  padding: 22px 28px;
  border-radius: 18px;
  color: #fff;
  font-family: "Prompt", "Source Sans Pro", sans-serif;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(84, 132, 255, .5) 0%, rgba(84, 132, 255, 0) 60%),
    linear-gradient(120deg, #0d1b45 0%, #1c3a7c 100%);
  box-shadow: 0 12px 30px rgba(13, 27, 69, .25);
}
.xmas-order-banner::before {        /* stars */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 120px 70px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 210px 20px, #cfe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 300px 60px, #fff 50%, transparent 51%);
  background-size: 340px 100px;
  opacity: .6;
  pointer-events: none;
}
.xmas-order-banner > * { position: relative; }
.xmas-order-banner .ob-text { flex: 1; min-width: 0; }
.xmas-order-banner .ob-title {
  margin: 0;
  font-family: "Mountains of Christmas", "Prompt", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: #ffd86b;
}
.xmas-order-banner .ob-sub {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 300;
  color: #d6e2ff;
}
.xmas-order-banner .xmas-countdown { margin: 0; gap: 8px; flex-wrap: nowrap; }
.xmas-order-banner .xmas-countdown .cd-box { min-width: 58px; padding: 6px 4px; border-radius: 10px; }
.xmas-order-banner .xmas-countdown .cd-num { font-size: 22px; }
.xmas-order-banner .xmas-countdown .cd-label { font-size: 11px; }
.xmas-order-banner .xmas-newyear { margin: 0; font-size: 20px; }
.xmas-order-banner .ob-scene {
  width: 150px;
  margin: -20px -10px -26px 0;
  flex: 0 0 auto;
}

.xmas-order .card {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(20, 40, 90, .08);
  overflow: visible;
}
.xmas-order .card-header {
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #fff7f7, #f4fff8);
}
.xmas-order .nav-tabs a.active {
  color: #d62839 !important;
  border-color: #d62839 !important;
}
.xmas-order .content-header-title h4 i { color: #d62839; }
.xmas-order .content-header-title h4::after {
  content: " 🎄";
}
.xmas-order .form-control:focus {
  border-color: #2f9e5e;
  box-shadow: 0 0 0 3px rgba(47, 158, 94, .15);
}
.xmas-order .total_charge {
  border: 0 !important;
  background: linear-gradient(90deg, #1f8a4c, #33b36b) !important;
  color: #fff !important;
}
.xmas-order button[type="submit"].btn-primary {
  position: relative;
  border: 0 !important;
  color: #fff !important;
  background: linear-gradient(90deg, #d62839, #ff5b5b) !important;
  box-shadow: 0 6px 18px rgba(214, 40, 57, .3);
}
.xmas-order button[type="submit"].btn-primary::after {
  content: "";
  position: absolute;
  top: -4px; left: 10px; right: 10px;
  height: 8px;
  border-radius: 8px 8px 5px 5px;
  background: #fff;
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .xmas-login-scene, .xmas-login-tree-left { display: none; }
}
@media (max-width: 767px) {
  .xmas-order-banner { flex-wrap: wrap; padding: 18px; text-align: center; justify-content: center; }
  .xmas-order-banner .ob-text { flex: 0 0 100%; }
  .xmas-order-banner .ob-scene { display: none; }
  .xmas-order-banner .xmas-countdown { justify-content: center; }
  .xmas-order-banner .ob-title { font-size: 26px; }
}
