/* HIN — ghép giao diện Giáng sinh (Christmas.2006) vào layout login của Moodle/Boost.
   Chỉ nạp trong core/login_layout.mustache. */

/* Bỏ các khung bao của Moodle để bố cục gốc (body grid căn giữa) chạy như bản tĩnh. */
.hin-xmas body.pagelayout-login { background: #b8cedc; color: #1f2b33; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.hin-xmas body.pagelayout-login #page-wrapper,
.hin-xmas body.pagelayout-login #page-wrapper #page { display: contents; } /* phải 2 id: Boost có "#page-wrapper #page {display:flex}" làm ô login lệch trái */
.hin-xmas body.pagelayout-login #page-footer,
.hin-xmas body.pagelayout-login .hin-xmas-assets,
.hin-xmas body.pagelayout-login .svg-asset-loader { display: none !important; }
.hin-xmas body.pagelayout-login .svg-asset-loader { position: absolute; width: 0; height: 0; border: 0; }

/* Reset Bootstrap trong card. */
.hin-xmas .auth-card p { margin-bottom: 0; }
.hin-xmas .auth-card label { margin-bottom: 0; }
.hin-xmas .auth-card #region-main { padding: 0; margin: 0; background: transparent; border: 0; box-shadow: none; }
.hin-xmas .auth-card .loginform { width: 100%; }
.hin-xmas .auth-card #login-form { display: grid; gap: inherit; }
.hin-xmas .auth-card .login-options { display: flex; justify-content: flex-end; }
.hin-xmas .auth-card .forgot-button { text-decoration: underline; text-underline-offset: 3px; }
.hin-xmas .auth-card a.submit { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }

/* Lỗi Moodle: hiện bằng popup mũ Santa; alert gốc vẫn ở DOM cho trình đọc màn hình. */
.hin-xmas .hin-xmas-moodle-error { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; border: 0; margin: -1px; }
.hin-xmas .auth-card .alert { border-radius: 12px; font-size: 14px; margin: 0 0 12px; }

/* Phần phụ dưới form (đăng nhập khách, ngôn ngữ, cookies). */
.hin-xmas .hin-xmas-extras { display: grid; gap: 8px; margin-top: 14px; font-size: 13px; text-align: center; }
.hin-xmas .hin-xmas-extras:empty { display: none; }
.hin-xmas .hin-xmas-extras .btn-link { color: inherit; opacity: .75; font-size: 13px; text-decoration: underline; }
.hin-xmas .hin-xmas-extras .login-languagemenu { display: flex; justify-content: center; }

/* Panel Placement test (cảnh đêm). */
.hin-xmas .hin-xmas-placement-list { margin: 18px 0 22px; padding-left: 20px; display: grid; gap: 8px; line-height: 1.45; }

/* Logo HIN thay "Your Logo". */
.hin-xmas .hin-xmas-logo { display: flex; align-items: center; gap: 10px; aspect-ratio: auto; }
.hin-xmas .hin-xmas-logo > img { width: 64px; height: auto; flex: none; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 25%)); }
.hin-xmas .hin-xmas-wordmark { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 26px; line-height: 1.05; color: #8e1420; white-space: nowrap; }
.hin-xmas .hin-xmas-wordmark em { color: #b8892e; }
.hin-xmas [data-mode="register"] .hin-xmas-wordmark { color: #f4e9d8; }

/* Các trang khác cùng layout login (quên mật khẩu, đăng xuất…): nội dung Moodle chuẩn trong khung. */
.hin-xmas .auth-card #region-main .mform,
.hin-xmas .auth-card #region-main .box { max-width: 100%; }
.hin-xmas .auth-card #region-main .col-md-3,
.hin-xmas .auth-card #region-main .col-md-9 { flex: 0 0 100%; max-width: 100%; }

/* Link ngôn ngữ / cookies trên nền đỏ. */
.hin-xmas .auth-card .hin-xmas-extras a,
.hin-xmas .auth-card .hin-xmas-extras .btn-link,
.hin-xmas .auth-card .login-languagemenu .dropdown-toggle { color: #f6e7cf !important; }

/* Mobile: header hẹp — chỉ giữ logo HIN, không chữ (tránh đè nút MENU). */
@media (max-width: 850px) {
  .hin-xmas .hin-xmas-wordmark { display: none; }
  .hin-xmas .hin-xmas-logo > img { width: 58px; }
}
