/* Login — ngày/đêm núi rừng + đèn theo chuột (đêm) + cú đậu ô tài khoản */
:root {
  --login-navy: #083B66;
  --login-blue: #0876C9;
  --login-cyan: #20C9D8;
  --login-red: #C51F2D;
  --login-gold: #F4B942;
  --login-font: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

.login-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--login-font);
  position: relative;
  overflow-x: hidden;
}

.login-body.is-day {
  background: linear-gradient(165deg, #c5d5e0 0%, #9eb6c8 45%, #7a97ad 100%);
}

.login-body.is-night {
  background: linear-gradient(165deg, #0b1220 0%, #152238 50%, #1a2d45 100%);
}

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px 16px;
}

.login-card {
  position: relative;
  width: min(1180px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.45fr .75fr;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

.login-body.is-day .login-card {
  background: #eef3f7;
  border: 1px solid rgba(255,255,255,.55);
}

.login-body.is-night .login-card {
  background: #1c2433;
  border: 1px solid rgba(255,255,255,.08);
}

/* ===== Đèn pin góc phải TRÊN HỘP login — chùm sáng hướng chuột ===== */
.login-torch {
  --aim: 150deg;
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 12;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #1a1408;
  background: radial-gradient(circle at 35% 30%, #fff6c8, #f4b942 55%, #c48912);
  box-shadow:
    0 0 0 2px rgba(255, 220, 120, .4),
    0 6px 18px rgba(0, 0, 0, .35),
    0 0 22px rgba(244, 185, 66, .55);
  align-items: center;
  justify-content: center;
  transition: filter .15s ease, opacity .2s ease, box-shadow .15s ease;
}
.login-body.is-night .login-torch:not([hidden]) {
  display: inline-flex;
}
.login-torch:hover {
  filter: brightness(1.08);
}
.login-torch.is-off {
  opacity: .5;
  filter: grayscale(.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}
.login-torch svg {
  display: block;
  /* Icon xoay theo hướng chiếu */
  transform: rotate(calc(var(--aim) + 90deg));
  transition: transform .08s linear;
}

.login-beam {
  display: none;
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 9;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .28s ease;
}
.login-body.is-night .login-beam { display: block; }
.login-body.is-night .login-beam.is-on { opacity: 1; }

/* Đèn bật → phủ tối; tắt đèn → bỏ lớp này (sáng như đêm trước đây) */
.login-beam-veil {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 18, .62);
  transition: opacity .28s ease;
}

/* Nón sáng: gốc ở đèn pin, kéo dài tới chuột */
.login-beam-cone {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 120px;
  height: 110px;
  transform-origin: 0 50%;
  transform: translateY(-50%) rotate(150deg);
  background: linear-gradient(
    90deg,
    rgba(255, 248, 210, .88) 0%,
    rgba(255, 230, 140, .5) 28%,
    rgba(255, 210, 100, .22) 58%,
    rgba(255, 200, 80, .07) 82%,
    transparent 100%
  );
  clip-path: polygon(0 46%, 100% 0%, 100% 100%, 0 54%);
  filter: blur(.6px);
  mix-blend-mode: screen;
}

/* Vệt sáng tại đầu chùm (theo chuột) */
.login-beam-spot {
  position: absolute;
  z-index: 1;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 250, 220, .55) 0%,
    rgba(255, 230, 140, .22) 40%,
    transparent 70%
  );
  mix-blend-mode: screen;
  filter: blur(1px);
}

/* ===== Cột trái — cảnh núi ===== */
.login-left {
  position: relative;
  z-index: 2;
  min-height: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.login-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.scene-sky {
  position: absolute;
  inset: 0;
  background: url("../images/nenlogin.png") center center / cover no-repeat;
}

.login-body.is-day .scene-sky {
  background: url("../images/nenlogin.png") center center / cover no-repeat;
}

/* Đêm: bandem.png — neo mép trên (cover căn giữa hay cắt trăng vì cột trái rộng hơn ảnh) */
.login-body.is-night .scene-sky {
  background-image: url("../images/bandem.png");
  background-repeat: no-repeat;
  background-position: 58% 0%;
  background-size: cover;
}

.login-body.is-night .scene-sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 22, .1);
  pointer-events: none;
}

.scene-sun {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  object-fit: contain;
  width: 96px;
  height: 96px;
  left: 8%;
  top: 5%;
  filter: drop-shadow(0 0 18px rgba(255, 190, 60, .55)) drop-shadow(0 0 40px rgba(255, 152, 0, .35));
  opacity: 1;
}

.login-body.is-night .scene-sun { display: none; }

/* Mây luôn TRÊN mặt trời, trải đều trái–phải, bay lững lờ */
.scene-clouds {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.scene-cloud {
  position: absolute;
  display: block;
  z-index: 1;
  height: 48px;
  width: auto;
  max-width: 38%;
  object-fit: contain;
  user-select: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, .15));
  opacity: .62;
}

.login-body.is-day .scene-cloud {
  opacity: .7;
}

.login-body.is-night .scene-cloud {
  opacity: .85;
  filter: drop-shadow(0 2px 12px rgba(200, 220, 255, .22));
}

/* Trải đều: trái / giữa / phải — lững lờ */
.scene-cloud--1 {
  top: 4%;
  left: 2%;
  right: auto;
  height: 54px;
  animation: sceneCloudFloatL 48s ease-in-out infinite;
}

.scene-cloud--2 {
  top: 12%;
  left: 18%;
  right: auto;
  height: 42px;
  animation: sceneCloudFloatL 56s ease-in-out infinite;
  animation-delay: -16s;
}

.scene-cloud--3 {
  top: 5%;
  left: 42%;
  right: auto;
  height: 48px;
  transform: scaleX(-1);
  animation: sceneCloudFloatM 52s ease-in-out infinite;
  animation-delay: -22s;
}

.scene-cloud--4 {
  top: 14%;
  left: auto;
  right: 22%;
  height: 40px;
  animation: sceneCloudFloatR 50s ease-in-out infinite;
  animation-delay: -10s;
}

.scene-cloud--5 {
  top: 3%;
  left: auto;
  right: 3%;
  height: 50px;
  animation: sceneCloudFloatRFlip 58s ease-in-out infinite;
  animation-delay: -28s;
}

.scene-cloud--6 {
  top: 20%;
  left: auto;
  right: 8%;
  height: 36px;
  opacity: .55;
  animation: sceneCloudFloatR 44s ease-in-out infinite;
  animation-delay: -18s;
}

/* Thêm mây quanh mặt trời (trái) */
.scene-cloud--7 {
  top: 8%;
  left: 10%;
  right: auto;
  height: 46px;
  opacity: .68;
  animation: sceneCloudFloatL 54s ease-in-out infinite;
  animation-delay: -20s;
}

.scene-cloud--8 {
  top: 18%;
  left: 0;
  right: auto;
  height: 38px;
  opacity: .5;
  transform: scaleX(-1);
  animation: sceneCloudFloatM 50s ease-in-out infinite;
  animation-delay: -30s;
}

/* Thêm mây quanh mặt trăng (phải) */
.scene-cloud--9 {
  top: 10%;
  left: auto;
  right: 14%;
  height: 44px;
  opacity: .66;
  animation: sceneCloudFloatR 52s ease-in-out infinite;
  animation-delay: -14s;
}

.scene-cloud--10 {
  top: 1%;
  left: auto;
  right: -2%;
  height: 40px;
  opacity: .58;
  transform: scaleX(-1);
  animation: sceneCloudFloatRFlip 46s ease-in-out infinite;
  animation-delay: -24s;
}

@keyframes sceneCloudFloatL {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(8vw, 7px); }
  50%  { transform: translate(14vw, -5px); }
  75%  { transform: translate(5vw, 8px); }
  100% { transform: translate(0, 0); }
}
@keyframes sceneCloudFloatM {
  0%   { transform: scaleX(-1) translate(0, 0); }
  30%  { transform: scaleX(-1) translate(-7vw, 6px); }
  60%  { transform: scaleX(-1) translate(6vw, -7px); }
  100% { transform: scaleX(-1) translate(0, 0); }
}
@keyframes sceneCloudFloatR {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-7vw, 6px); }
  50%  { transform: translate(-13vw, -6px); }
  75%  { transform: translate(-4vw, 8px); }
  100% { transform: translate(0, 0); }
}
@keyframes sceneCloudFloatRFlip {
  0%   { transform: scaleX(-1) translate(0, 0); }
  25%  { transform: scaleX(-1) translate(-7vw, 6px); }
  50%  { transform: scaleX(-1) translate(-13vw, -6px); }
  75%  { transform: scaleX(-1) translate(-4vw, 8px); }
  100% { transform: scaleX(-1) translate(0, 0); }
}

/* Sao ban đêm — rải thưa trên bầu trời trái–giữa (không dồn cụm) */
.scene-stars {
  position: absolute;
  left: 0;
  top: 0;
  width: 72%;
  height: 38%;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.login-body.is-night .scene-stars { opacity: 1; }

.scene-stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px #fff, 0 0 8px rgba(255,255,255,.45);
  animation: starTwinkle 1.8s ease-in-out infinite;
}

.scene-stars span:nth-child(1)  { left: 6%;  top: 10%; animation-delay: 0s; }
.scene-stars span:nth-child(2)  { left: 18%; top: 6%;  animation-delay: .35s; width: 1.5px; height: 1.5px; animation-duration: 1.3s; }
.scene-stars span:nth-child(3)  { left: 30%; top: 14%; animation-delay: .7s; animation-duration: 2.1s; }
.scene-stars span:nth-child(4)  { left: 42%; top: 5%;  animation-delay: .2s; width: 1.5px; height: 1.5px; }
.scene-stars span:nth-child(5)  { left: 54%; top: 12%; animation-delay: 1.1s; animation-duration: 1.5s; }
.scene-stars span:nth-child(6)  { left: 12%; top: 24%; animation-delay: .55s; width: 1.5px; height: 1.5px; }
.scene-stars span:nth-child(7)  { left: 25%; top: 28%; animation-delay: 1.4s; animation-duration: 1.9s; }
.scene-stars span:nth-child(8)  { left: 38%; top: 22%; animation-delay: .85s; width: 1.5px; height: 1.5px; }
.scene-stars span:nth-child(9)  { left: 50%; top: 30%; animation-delay: .15s; }
.scene-stars span:nth-child(10) { left: 62%; top: 8%;  animation-delay: 1.25s; width: 1.5px; height: 1.5px; animation-duration: 1.4s; }
.scene-stars span:nth-child(11) { left: 8%;  top: 34%; animation-delay: .95s; }
.scene-stars span:nth-child(12) { left: 22%; top: 16%; animation-delay: .4s; width: 1.5px; height: 1.5px; }
.scene-stars span:nth-child(13) { left: 35%; top: 8%;  animation-delay: 1.6s; animation-duration: 1.7s; }
.scene-stars span:nth-child(14) { left: 48%; top: 18%; animation-delay: .65s; width: 1.5px; height: 1.5px; }
.scene-stars span:nth-child(15) { left: 58%; top: 26%; animation-delay: 1.05s; }
.scene-stars span:nth-child(16) { left: 15%; top: 4%;  animation-delay: .5s; width: 1.5px; height: 1.5px; animation-duration: 2s; }
.scene-stars span:nth-child(17) { left: 44%; top: 34%; animation-delay: 1.35s; }
.scene-stars span:nth-child(18) { left: 66%; top: 20%; animation-delay: .25s; width: 1.5px; height: 1.5px; }
.scene-stars span:nth-child(19) { left: 3%;  top: 18%; animation-delay: .8s; animation-duration: 1.55s; }
.scene-stars span:nth-child(20) { left: 28%; top: 36%; animation-delay: 1.5s; width: 1.5px; height: 1.5px; }
.scene-stars span:nth-child(21) { left: 70%; top: 14%; animation-delay: .45s; }
.scene-stars span:nth-child(22) { left: 33%; top: 2%;  animation-delay: 1.15s; width: 1.5px; height: 1.5px; animation-duration: 1.65s; }

@keyframes starTwinkle {
  0%, 100% { opacity: .15; transform: scale(.5); }
  35% { opacity: 1; transform: scale(1.35); }
  60% { opacity: .4; transform: scale(.75); }
  80% { opacity: .9; transform: scale(1.15); }
}

/* Núi SVG tắt — nền đã dùng nenlogin.png */
.scene-mountains {
  display: none;
}

.login-left-content {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* toàn bộ xuống dưới cùng */
  min-height: 100%;
  padding: 20px 20px 18px;
  /* Trên trong suốt (nhìn mặt); dưới tối cho hàng chữ */
  background: linear-gradient(180deg,
    rgba(8, 40, 70, 0) 0%,
    rgba(8, 40, 70, 0) 42%,
    rgba(8, 40, 70, .28) 68%,
    rgba(6, 28, 50, .88) 100%);
}

.login-body.is-night .login-left-content {
  background: linear-gradient(180deg,
    rgba(4, 10, 22, 0) 0%,
    rgba(4, 10, 22, .05) 45%,
    rgba(4, 10, 22, .45) 72%,
    rgba(4, 10, 22, .9) 100%);
}

/* Hàng dưới: trái = logo+chữ cuộc thi · phải = Phú Phẩm */
.login-bottom-bar {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 20px;
  width: 100%;
}

.login-main {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: 4px 6px;
  background: rgba(255,255,255,.95);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  flex: 0 0 auto;
}

.login-logo,
.login-logo-contest {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain !important;
  display: block !important;
}

.login-app-name {
  margin: 0;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  line-height: 1.18;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
  min-width: 0;
}

.login-app-name .ln1,
.login-app-name .ln2,
.login-app-name .ln3 {
  white-space: nowrap;
}
.login-app-name .ln1,
.login-app-name .ln3 {
  font-size: clamp(.78rem, 1.2vw, .95rem);
  letter-spacing: .02em;
}
.login-app-name .ln2 {
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 800;
  max-width: none;
  margin-inline: 0;
  letter-spacing: .01em;
}
.login-app-name .ln3 { color: var(--login-gold); }

.login-left-foot {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.login-dev-brand {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-decoration: none !important;
  color: #fff;
}

.login-dev-logo {
  /* Ảnh cao = logo BTG (40px); padding ngoài như .login-brand → tổng ~48px */
  height: 40px;
  width: auto;
  max-width: none;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px 6px;
  display: block;
  flex: 0 0 auto;
  box-sizing: content-box;
}

/* Label + tên cty trong một khối, 2 dòng sát nhau */
.login-dev-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  line-height: 1.15;
}

.login-dev-label {
  margin: 0;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  text-align: left;
  white-space: nowrap;
}

.login-dev-name {
  font-size: .72rem;
  font-weight: 800;
  text-align: left;
  line-height: 1.15;
  white-space: nowrap;
  max-width: none;
}

/* ===== Cột phải — form ===== */
.login-right {
  position: relative;
  z-index: 2;
  padding: 44px 42px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}

.login-body.is-day .login-right { background: #f4f7fa; }
.login-body.is-night .login-right { background: #232c3d; }

.login-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  margin: 0 0 18px;
}

.login-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
}

.login-body.is-day .login-title-icon {
  color: var(--login-blue);
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(8, 118, 201, .12));
  box-shadow:
    inset 0 0 0 1px rgba(8, 118, 201, .22),
    0 6px 16px rgba(8, 59, 102, .12);
}

.login-body.is-night .login-title-icon {
  color: #1a1408;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.1) 50%),
    linear-gradient(145deg, #ffe566, #f5d76e 55%, #e6b422);
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 140, .55),
    0 0 20px rgba(245, 215, 110, .45),
    0 8px 18px rgba(0, 0, 0, .25);
}

.login-title {
  margin: 0;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 900;
}

.login-body.is-day .login-title { color: #1e293b; }
.login-body.is-night .login-title {
  color: #ffe566;
  text-shadow:
    0 0 8px rgba(255, 236, 140, .75),
    0 0 18px rgba(255, 214, 80, .45),
    0 1px 2px rgba(0, 0, 0, .35);
}

.login-label {
  display: block;
  font-weight: 800;
  font-size: .8rem;
  margin: 12px 0 4px;
}
.login-label:first-of-type { margin-top: 0; }

.login-body.is-day .login-label { color: var(--login-navy); }
.login-body.is-night .login-label { color: #cbd5e1; }

.login-field-wrap {
  position: relative;
  margin-top: 0;
  overflow: visible;
}

/* Ban đêm chừa chỗ cho cú đậu trên ô tài khoản */
.login-body.is-night .login-field-wrap {
  margin-top: 48px;
}

.login-owl {
  display: none;
  position: absolute;
  left: 8px;
  top: auto;
  bottom: 100%;
  margin-bottom: -6px;
  width: 64px;
  height: 52px;
  object-fit: contain;
  object-position: bottom left;
  z-index: 12;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
  transform: rotate(-2deg);
  transform-origin: 40% 100%;
}

.login-body.is-night .login-owl {
  display: block;
}

.login-field {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: visible;
}

.login-field-icon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 44px;
  display: grid;
  place-items: center;
  font-size: .92rem;
  pointer-events: none;
  border-right: 1px solid transparent;
  border-radius: 12px 0 0 12px;
}

.login-body.is-day .login-field-icon {
  color: var(--login-navy);
  background: #e8eef5;
  border-right-color: #d5e0eb;
}

.login-body.is-night .login-field-icon {
  color: #93c5fd;
  background: #1a2230;
  border-right-color: #334155;
}

.login-field .login-input { padding-left: 3.15rem; }
.login-field--password .login-input { padding-right: 2.8rem; }

.login-input {
  width: 100%;
  border-radius: 12px;
  padding: .72rem .85rem;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.login-body.is-day .login-input {
  border: 1px solid #c9d7e5;
  background: #fff;
  color: #0f172a;
}

.login-body.is-night .login-input {
  border: 1px solid #3d4b63;
  background: #171e2b;
  color: #f1f5f9;
}

.login-input:focus {
  outline: none;
  border-color: var(--login-blue);
  box-shadow: 0 0 0 3px rgba(8, 118, 201, .2);
}

.login-field:focus-within .login-field-icon {
  color: #fff;
  background: linear-gradient(165deg, #083B66, #0876C9);
  border-right-color: #60a5fa;
}

.login-pass-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.login-body.is-day .login-pass-toggle { color: #64748b; }
.login-body.is-night .login-pass-toggle { color: #94a3b8; }
.login-pass-toggle:hover { color: var(--login-blue); background: rgba(8,118,201,.12); }

.login-alert {
  margin: 10px 0 0;
  color: #ef4444;
  font-weight: 800;
  font-size: .88rem;
}

.login-submit {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  padding: .8rem 1rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: linear-gradient(180deg, #2dd4bf 0%, #0d9488 55%, #0f766e 100%);
  box-shadow: 0 12px 24px rgba(13, 148, 136, .28);
}
.login-submit:hover { filter: brightness(1.06); }

.login-body.is-night .login-submit {
  color: #1a1408;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,.1) 38%, transparent 58%),
    linear-gradient(180deg, #ffe566 0%, #f5d76e 45%, #e6b422 78%, #c9970d 100%);
  box-shadow:
    0 12px 28px rgba(230, 180, 34, .4),
    0 0 24px rgba(255, 214, 80, .35),
    0 0 0 1px rgba(255, 236, 140, .4),
    inset 0 1px 0 rgba(255,255,255,.75);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}
.login-body.is-night .login-submit:hover {
  filter: brightness(1.07);
  box-shadow:
    0 14px 32px rgba(230, 180, 34, .5),
    0 0 30px rgba(255, 214, 80, .45),
    inset 0 1px 0 rgba(255,255,255,.85);
}

.login-recaptcha-note {
  margin: 12px 0 0;
  font-size: .72rem;
  text-align: center;
  color: #94a3b8;
}

.login-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  margin-top: 14px;
  text-align: center;
  font-weight: 700;
  font-size: .88rem;
  color: var(--login-blue);
  text-decoration: none;
  line-height: 1.3;
  overflow: visible;
}
.login-home-link .fa-solid,
.login-home-link i {
  flex: 0 0 auto;
  line-height: 1;
  font-size: 1em;
}
.login-home-link:hover { text-decoration: underline; }
.login-body.is-night .login-home-link { color: #7dd3fc; }

@media (max-width: 900px) {
  .login-card { grid-template-columns: 1fr; min-height: 0; }
  .login-left { min-height: 300px; }
  .login-bottom-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .login-left-foot {
    align-items: flex-start;
    text-align: left;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.2);
  }
  .login-dev-brand { justify-content: flex-start; }
  .login-app-name .ln1,
  .login-app-name .ln2,
  .login-app-name .ln3 {
    white-space: normal;
  }
  .login-body.is-night .login-field-wrap { margin-top: 42px; }
  .login-owl { width: 54px; height: 44px; margin-bottom: -4px; }

  .scene-sun {
    width: 72px;
    height: 72px;
    left: 4%;
    top: 2%;
  }

  .scene-cloud--1 { top: 2%; left: 0; height: 40px; }
  .scene-cloud--2 { top: 10%; left: 14%; height: 32px; }
  .scene-cloud--3 { top: 3%; left: 38%; height: 36px; }
  .scene-cloud--4 { top: 12%; right: 18%; left: auto; height: 30px; }
  .scene-cloud--5 { top: 2%; right: 2%; left: auto; height: 38px; }
  .scene-cloud--6 { top: 16%; right: 6%; left: auto; height: 28px; }
  .scene-cloud--7 { top: 6%; left: 6%; height: 34px; }
  .scene-cloud--8 { top: 14%; left: -2%; height: 28px; }
  .scene-cloud--9 { top: 7%; right: 10%; left: auto; height: 32px; }
  .scene-cloud--10 { top: 0; right: -4%; left: auto; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-stars span,
  .scene-cloud,
  .scene-sun { animation: none !important; }
  .login-beam,
  .login-torch { display: none !important; }
}

@media (max-width: 720px) {
  .login-torch {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }
  .login-beam-cone { height: 88px; }
  .login-beam-spot {
    width: 90px;
    height: 90px;
    margin: -45px 0 0 -45px;
  }
}

/* ===== Đổi mật khẩu bắt buộc — cùng ngôn ngữ Login ===== */
.pwd-card {
  position: relative;
  width: min(920px, 100%);
  min-height: 480px;
  display: grid;
  grid-template-columns: .95fr 1.15fr;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

.login-body.is-day .pwd-card {
  background: #eef3f7;
  border: 1px solid rgba(255,255,255,.55);
}

.login-body.is-night .pwd-card {
  background: #1c2433;
  border: 1px solid rgba(255,255,255,.08);
}

.pwd-hero {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  color: #fff;
}

.pwd-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.pwd-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(6, 28, 50, .35) 0%,
    rgba(6, 28, 50, .55) 55%,
    rgba(6, 28, 50, .88) 100%);
  pointer-events: none;
}

.login-body.is-night .pwd-hero-veil {
  background: linear-gradient(180deg,
    rgba(4, 10, 22, .4) 0%,
    rgba(4, 10, 22, .62) 55%,
    rgba(4, 10, 22, .92) 100%);
}

.pwd-hero-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 22px 20px 0;
  padding: 5px 7px;
  background: rgba(255,255,255,.95);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

.pwd-hero-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.pwd-hero-title {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  margin: 0;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
  line-height: 1.35;
}

.pwd-form-pane {
  position: relative;
  z-index: 2;
  padding: 36px 38px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-body.is-day .pwd-form-pane { background: #f4f7fa; }
.login-body.is-night .pwd-form-pane { background: #232c3d; }

.pwd-lead {
  margin: 0 0 14px;
  font-size: .86rem;
  line-height: 1.5;
  font-weight: 500;
}

.login-body.is-day .pwd-lead { color: #475569; }
.login-body.is-night .pwd-lead { color: #94a3b8; }

.pwd-lead strong {
  font-weight: 800;
}

.login-body.is-day .pwd-lead strong { color: var(--login-navy); }
.login-body.is-night .pwd-lead strong { color: #e2e8f0; }

.pwd-hints {
  margin: 12px 0 0;
  padding: 10px 12px 10px 1.6rem;
  border-radius: 12px;
  font-size: .78rem;
  line-height: 1.45;
  font-weight: 600;
}

.login-body.is-day .pwd-hints {
  background: rgba(8, 118, 201, .08);
  color: #334155;
  border: 1px solid rgba(8, 118, 201, .14);
}

.login-body.is-night .pwd-hints {
  background: rgba(255, 214, 80, .08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 214, 80, .16);
}

.pwd-hints li { margin: .15rem 0; }

@media (max-width: 820px) {
  .pwd-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .pwd-hero { min-height: 160px; }
  .pwd-form-pane { padding: 28px 22px 26px; }
  .pwd-hero-title { font-size: .75rem; }
}
