/* ============================================================
   Trang dang nhap — 2 cot tren PC, 1 cot tren dien thoai
   ============================================================ */

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

/* ---------- cot trai: anh + chu gioi thieu ---------- */
.login-stage {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 4vw, 3.4rem);
  color: #fff;
  background: #1b2233;
}

.stage-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 1.4s var(--ease),
    transform 9s linear;
}

.stage-art.on {
  opacity: 1;
  transform: scale(1);
}

.login-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    200deg,
    rgba(27, 34, 51, 0.82) 0%,
    rgba(53, 80, 111, 0.52) 48%,
    rgba(27, 34, 51, 0.9) 100%
  );
}

.stage-top,
.stage-bottom {
  position: relative;
  z-index: 2;
}

.stage-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Newsreader", serif;
  font-size: 1.08rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

.stage-brand i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pastel);
  box-shadow: 0 0 0 0 rgba(185, 205, 229, 0.7);
  animation: pulse 2.8s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(185, 205, 229, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(185, 205, 229, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(185, 205, 229, 0);
  }
}

.stage-bottom h1 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.16;
  margin-bottom: 0.9rem;
  max-width: 18ch;
}

.stage-bottom p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
  max-width: 44ch;
}

.stage-bottom .eyebrow {
  color: var(--pastel);
  margin-bottom: 1.1rem;
}

/* danh sach phan he */
.stage-mods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.chip {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  transition:
    background 0.34s var(--ease),
    border-color 0.34s var(--ease),
    color 0.34s var(--ease),
    transform 0.34s var(--ease);
}

.chip:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

.chip.live {
  border-color: var(--pastel);
  color: #fff;
}

/* chuyen anh: cac dot chi so */
.stage-dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.6rem;
}

.stage-dots button {
  width: 26px;
  height: 3px;
  border: 0;
  padding: 0;
  border-radius: 3px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.28);
  transition:
    background 0.34s var(--ease),
    width 0.34s var(--ease);
}

.stage-dots button:hover {
  background: rgba(255, 255, 255, 0.6);
}

.stage-dots button.on {
  width: 44px;
  background: var(--pastel);
}

/* ---------- cot phai: form ---------- */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.6rem, 4vw, 3rem);
}

.card {
  width: min(420px, 100%);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(16px) saturate(124%);
  -webkit-backdrop-filter: blur(16px) saturate(124%);
  box-shadow: var(--shadow-soft);
}

.card > .eyebrow {
  margin-bottom: 0.7rem;
}

.card h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  margin-bottom: 0.45rem;
}

.card .sub {
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.2rem 0 1.6rem;
}

.btn-block {
  width: 100%;
}

.card-foot {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(150, 177, 208, 0.3);
  font-size: 0.76rem;
  color: var(--ink-3);
  line-height: 1.6;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* goi y tai khoan thu nghiem */
.hint {
  font-size: 0.74rem;
  color: var(--ink-2);
  background: rgba(185, 205, 229, 0.28);
  border: 1px dashed rgba(150, 177, 208, 0.7);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hint b {
  font-weight: 500;
  color: var(--ink);
}

/* ---------- lop phu quen mat khau ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(27, 34, 51, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.36s var(--ease),
    visibility 0.36s;
}

.sheet.open {
  opacity: 1;
  visibility: visible;
}

.sheet-card {
  width: min(420px, 100%);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-lift);
  transform: translateY(22px) scale(0.97);
  transition:
    transform 0.42s var(--ease),
    opacity 0.3s var(--ease);
  opacity: 0;
}

.sheet.open .sheet-card {
  transform: none;
  opacity: 1;
}

.sheet-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.sheet-card .sub {
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.sheet-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.sheet-actions .btn {
  flex: 1;
}

/* ---------- man che khi dang nhap thanh cong ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--canvas);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s var(--ease),
    visibility 0.5s;
}

.veil.open {
  opacity: 1;
  visibility: visible;
}

.veil-inner {
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.6s var(--ease);
}

.veil.open .veil-inner {
  transform: none;
}

.veil h3 {
  font-size: 1.3rem;
  margin: 1.1rem 0 0.4rem;
}

.veil p {
  font-size: 0.86rem;
  color: var(--ink-2);
}

.tick {
  width: 62px;
  height: 62px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--ok-soft);
  border: 1px solid rgba(47, 125, 98, 0.4);
  display: grid;
  place-items: center;
}

.tick svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
}

.veil.open .tick svg {
  animation: draw 0.6s var(--ease) 0.16s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- dien thoai / tablet ---------- */
@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-stage {
    min-height: 40vh;
    padding: 1.6rem 1.3rem 2rem;
  }

  .stage-bottom h1 {
    font-size: 1.7rem;
    max-width: none;
  }

  /* an doan mo ta dai va cac dot chuyen anh, giu lai dong nhan */
  .stage-bottom p,
  .stage-dots {
    display: none;
  }

  .stage-bottom p.eyebrow {
    display: block;
    margin-bottom: 0.6rem;
  }

  .stage-mods {
    margin-top: 1.1rem;
  }

  .login-panel {
    padding: 1.4rem 1.1rem 2.4rem;
  }

  .card {
    box-shadow: 0 -14px 34px -22px rgba(27, 34, 51, 0.5);
  }
}

@media (max-width: 420px) {
  .card {
    padding: 1.3rem 1.15rem 1.5rem;
    border-radius: 12px;
  }

  .row-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}
