/* Trang tổng: màn đăng nhập (tiền tố tg-dn-). Luôn nền sáng (không theo nền tối của trang trong). */
body.tg-dn { color-scheme: light; min-height: 100vh; min-height: 100dvh; padding: 16px 12px 17px; display: flex; overflow-x: hidden; color: #fff; font: 15px/20px "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
  /* ô chéo rất nhạt: hai lớp kẻ xiên đan nhau */
  background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .012) 0 2px, transparent 2px 7px), rgb(250, 250, 250); }
.tg-dn-hop { width: 376px; max-width: 100%; margin: auto; padding: 40px 30px; border: 1px solid rgb(27, 63, 95); background: rgb(27, 63, 95); box-shadow: 0 2px 2px rgba(0, 0, 0, .3); }

/* hàng trên: bên trái để trống, bên phải ô chọn ngôn ngữ */
.tg-dn-dau { height: 34px; display: flex; justify-content: flex-end; }
.tg-dn-nn { position: relative; width: 117px; }
.tg .tg-dn-nn-nut { width: 117px; height: 34px; padding: 0 4px; border: 0; background: none; color: #fff; font-size: 14px; text-align: center; cursor: pointer; white-space: nowrap; }
.tg-dn-nn-nut i { display: inline-block; margin-left: 6px; vertical-align: 2px; border: 4px solid transparent; border-top-color: #fff; border-bottom: 0; }
.tg-dn-nn-ds { position: absolute; z-index: 5; right: 0; top: 34px; width: 117px; padding: 4px 0; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.tg-dn-nn-ds [role="option"] { height: 32px; padding: 0 14px; line-height: 32px; font-size: 14px; color: rgb(51, 51, 51); cursor: pointer; }
.tg-dn-nn-ds [role="option"]:hover, .tg-dn-nn-ds [role="option"]:focus { background: rgb(237, 237, 237); outline: 0; }
.tg-dn-nn-ds [aria-selected="true"] { font-weight: 600; }

.tg .tg-dn-td { margin: 16px 0; font-size: 25px; font-weight: 400; line-height: 26px; text-align: center; color: #fff; }
.tg-dn-ten { margin: -4px 0 12px; text-align: center; overflow-wrap: anywhere; }
.tg-dn-loi { margin-bottom: 15px; color: rgb(255, 149, 0); overflow-wrap: anywhere; }
.tg-dn-loi:empty { display: none; }
.tg-dn-nhan { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tg .tg-dn-o { display: block; width: 100%; height: 36px; margin: 0 0 15px; padding: 8px 0 4px; border: 0; border-bottom: 1px solid rgb(141, 159, 175); border-radius: 0; background: none; color: #fff; font-size: 15px; outline: 0; -webkit-appearance: none; appearance: none; }
.tg .tg-dn-o::placeholder { color: rgb(141, 159, 175); opacity: 1; }
.tg .tg-dn-o:focus { border-bottom-color: #fff; }
.tg .tg-dn-o.tg-dn-o-loi { border-bottom-color: rgb(255, 149, 0); }
.tg .tg-dn-o:-webkit-autofill { -webkit-text-fill-color: #fff; caret-color: #fff; box-shadow: 0 0 0 40px rgb(27, 63, 95) inset; }
.tg-dn-o::-ms-reveal { display: none; }
.tg-dn-hoa { margin: -9px 0 9px; font-size: 13px; line-height: 18px; color: rgb(255, 149, 0); }
.tg-dn-hoa:empty { display: none; }
.tg-dn-xem { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 15px; font-size: 14px; cursor: pointer; }
.tg-dn-xem input { width: 13px; height: 13px; margin: 0; cursor: pointer; }

.tg-dn-hang { display: flex; gap: 10px; }
.tg .tg-dn-nut { flex: 1 1 0; min-width: 0; height: 40px; padding: 0 6px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 0; background: rgb(59, 106, 147); color: #fff; font-size: 15px; font-weight: 400; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.tg .tg-dn-nut:hover { background: rgb(68, 119, 164); }
.tg .tg-dn-nut-lui { border-color: rgb(141, 159, 175); background: none; }
.tg .tg-dn-nut-lui:hover { background: rgba(255, 255, 255, .08); }
.tg .tg-dn-nut:disabled { opacity: .75; cursor: progress; }
.tg .tg-dn-nut:focus-visible, .tg .tg-dn-nn-nut:focus-visible, .tg .tg-dn-xem input:focus-visible { outline: 1px solid #fff; outline-offset: 1px; }
.tg-dn-vong { display: none; flex: none; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: tg-quay .7s linear infinite; }
.tg-dn-gui .tg-dn-vong { display: block; }

@media (max-width: 480px) {
  .tg .tg-dn-o { font-size: 16px; }          /* dưới 16px thì iPhone tự phóng to trang khi bấm vào ô */
}
@media (max-width: 380px) {
  .tg-dn-hop { padding: 30px 20px; }
  .tg .tg-dn-nut { font-size: 14px; }
}

/* v11 theo màn đăng nhập mẫu (video chủ quay 04/12): mặt trăng + cờ, bước 2 có ảnh đại diện + câu cảnh báo, nút trắng chữ xanh đậm */
.tg-dn-dau { align-items: center; gap: 6px; }
.tg-dn-trang { display: inline-flex; color: rgb(141, 159, 175); margin-right: 4px; }
.tg-dn-co { flex: none; margin-right: 6px; vertical-align: -3px; }
.tg .tg-dn-nn-nut { display: inline-flex; align-items: center; justify-content: center; }
.tg-dn-nguoi { text-align: center; }
.tg-dn-nguoi[hidden] { display: none; }
.tg-dn-anh { display: flex; justify-content: center; margin: 0 0 6px; }
.tg-dn-anh .tg-anh { border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); background: #fff; }
.tg-dn-ten { margin: 0 0 14px; font-size: 15px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.tg .tg-dn-canh { margin: 0 0 10px; font-size: 13px; line-height: 18px; text-align: left; color: #fff; }
.tg .tg-dn-canh b { font-weight: 700; }
.tg .tg-dn-nut { background: #fff; color: rgb(27, 63, 95); font-size: 15px; }
.tg .tg-dn-nut:hover, .tg .tg-dn-nut-lui:hover { background: rgb(59, 106, 147); color: #fff; }
.tg .tg-dn-nut-lui { border-color: transparent; background: #fff; }
.tg-dn-vong { border-color: rgba(27, 63, 95, .35); border-top-color: rgb(27, 63, 95); }

/* v12: nền và khoảng cách bước 2 đo theo video trang thật (1920 px): nền xám rất nhạt, chữ cảnh báo 15 px, các khoảng thưa hơn */
.tg-dn-anh { margin: 26px 0 14px; }
.tg-dn-ten { margin: 0 0 30px; font-weight: 600; }
.tg .tg-dn-canh { margin: 0 0 18px; font-size: 15px; line-height: 20px; }
.tg-dn-xem { font-size: 15px; margin-bottom: 18px; }
.tg-dn-xem input { width: 15px; height: 15px; }
.tg-dn-hang { gap: 14px; }