.login-page {
  --paper: #f9f6f2;
  --ink: #30242d;
  --muted: #796b73;
  --red: #80344d;
  margin: 0;
  min-height: 100svh;
  padding: 48px 28px;
  display: grid;
  place-items: center;
  background: #eae0de;
  color: var(--ink);
  font: 15px/1.65 "Be Vietnam Pro", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.login-page *, .login-page *::before, .login-page *::after { box-sizing: border-box; }
.login-page [hidden] { display: none !important; }
.login-page ::selection { background: #e6bdc6; color: #30242d; }
.login-page a { color: inherit; text-underline-offset: 4px; }
.login-page button, .login-page input { font: inherit; }
.login-page button, .login-page a { -webkit-tap-highlight-color: transparent; }
.login-page a:focus-visible, .login-page button:focus-visible { outline: 3px solid #b77b8d; outline-offset: 4px; }
.login-shell { width: min(100%, 1100px); display: grid; grid-template-columns: .95fr 1fr; min-height: 720px; background: var(--paper); border-radius: 20px; overflow: hidden; box-shadow: 0 28px 80px #482d3815; }
.login-art { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: 34px; color: #fff6f0; background: #392633; overflow: hidden; }
.art-portrait { position: absolute; inset: 0; z-index: -2; }
.art-portrait > img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 48%; display: block; }
.login-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #281d2e90, transparent 38%, #2e1825ed 100%); }
.art-back { width: fit-content; padding: 8px 13px; border: 1px solid #ffffff50; border-radius: 30px; background: #32243335; text-decoration: none; font-size: 12px; }
.art-back:hover { background: #322433a0; }
.art-heading { margin-top: auto; padding-top: 310px; }
.art-heading > p { font-size: 11px; color: #f1d2d8; margin: 0 0 14px; }
.art-heading h2 { margin: 0; font: 500 47px/1.15 "Noto Serif Display", Georgia, serif; letter-spacing: -.04em; }
.art-caption { position: absolute; right: 26px; top: 31px; }
.art-caption > span { display: none; }
.art-caption strong { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid #f3d4b480; border-radius: 50%; color: #ffe2bd; background: #5a2b4266; font: 500 23px "Noto Serif Display", Georgia, serif; }
.art-wish { font-size: 12px; color: #ddbec8; margin: 18px 0 0; max-width: 300px; }
.login-panel { padding: 46px 58px 30px; width: 100%; align-self: center; }
.login-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 800; letter-spacing: -.06em; text-decoration: none; line-height: 1.2; }
.login-brand img { width: 43px; height: 43px; border-radius: 11px; }
.login-brand small { display: block; font-size: 10px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 5px; }
.login-heading { margin: 38px 0 27px; }
.welcome-note { font-size: 12px; color: var(--red); margin: 0 0 9px; }
.login-heading h1 { font: 600 29px/1.35 "Be Vietnam Pro", sans-serif; letter-spacing: -.055em; margin: 0; }
.login-heading > p:last-child { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 12px 0 0; max-width: 330px; }
.login-field + .login-field { margin-top: 21px; }
.login-field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 9px; }
.login-field input { display: block; width: 100%; height: 52px; border: 1px solid #d5cbd0; border-radius: 8px; background: #fffdfb; padding: 12px 15px; color: var(--ink); caret-color: var(--red); transition: border-color .2s, box-shadow .2s; }
.login-field input:hover { border-color: #bda9b4; }
.login-field input:focus { outline: 0; border-color: #97596e; box-shadow: 0 0 0 3px #97596e19; }
.login-field input[aria-invalid="true"] { border-color: #b32c4c; }
.password-field { position: relative; }
.password-field input { padding-right: 70px; }
.password-toggle { position: absolute; right: 4px; top: 4px; min-width: 58px; height: 44px; border: 0; border-radius: 5px; background: transparent; color: var(--red); font-size: 12px !important; font-weight: 500 !important; cursor: pointer; }
.password-toggle:hover { background: #f4e7ea; }
.field-error { font-size: 12px; color: #b32c4c; margin: 6px 0 0; }
.field-error:empty { display: none; }
.login-feedback { margin: 12px 0 8px; min-height: 20px; font-size: 12px; color: #b32c4c; overflow-wrap: anywhere; }
.login-feedback.is-success { color: #38603d; }
.login-submit { display: block; width: 100%; min-height: 52px; padding: 13px 18px; border: 0; border-radius: 8px; background: var(--red); color: #fff9f7; font-weight: 600 !important; font-size: 14px !important; cursor: pointer; transition: background-color .2s; }
.login-submit:hover { background: #66263d; }
.login-submit:active { background: #4c1c30; }
.login-submit:disabled { background: #977480; cursor: wait; }
.login-recovery { text-align: center; font-size: 12px; color: var(--muted); margin: 19px 0 0; }
.login-recovery a { color: var(--red); font-weight: 500; }
.login-note { padding: 15px 10px; margin: 26px 0 0; border-radius: 7px; background: #eee7e5; color: #71616b; text-align: center; font-size: 11px; }
.login-note strong { font-weight: 500; color: #4c3541; }
.login-links { display: flex; justify-content: center; gap: 28px; margin-top: 17px; font-size: 12px; }
.login-links a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; color: var(--muted); }
.login-links a:hover { color: var(--red); text-decoration: underline; }
.zalo-modal { position: fixed; inset: 0; z-index: 20; padding: 20px; display: flex; align-items: center; justify-content: center; overflow-y: auto; background: #231823b8; }
.zalo-card { width: 350px; max-width: 100%; max-height: 100%; overflow-y: auto; padding: 28px; border-radius: 16px; background: var(--paper); text-align: center; }
.zalo-card h2 { margin: 0 0 22px; font-size: 22px; font-weight: 600; }
.zalo-card img { display: block; width: 260px; height: auto; max-width: 100%; margin: 0 auto 24px; }
.login-page.modal-open { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1050px) { .login-panel { padding-inline: 36px; } .art-heading h2 { font-size: 39px; } .login-heading h1 { font-size: 26px; } }
@media (max-width: 767px) {
  .login-page { padding: 24px 18px; background: #eee4e5; }
  .login-shell { display: flex; flex-direction: column; max-width: 450px; min-height: auto; border-radius: 16px; }
  .login-art { padding: 18px 22px; min-height: 106px; flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; background: #702e49; }
  .art-portrait { inset: 0 0 0 auto; width: 160px; }
  .art-portrait > img { object-position: center 33%; opacity: .75; }
  .login-art::after { background: linear-gradient(90deg,#702e49 10%,#702e49d9 48%,transparent); }
  .art-back { position: relative; z-index: 1; font-size: 11px; padding: 7px 10px; flex-shrink: 0; }
  .art-heading { margin: 0; padding: 0; flex: 1; }
  .art-heading h2 { display: none; }
  .art-heading > p { max-width: 125px; margin: 0; font-size: 11px; line-height: 1.7; color: #fff0ee; }
  .art-caption, .art-wish { display: none; }
  .login-panel { padding: 29px 25px 20px; }
  .login-brand { font-size: 21px; }
  .login-heading { margin-top: 28px; margin-bottom: 24px; }
  .login-heading h1 { font-size: 26px; }
  .login-heading > p:last-child { font-size: 12px; }
  .login-note { margin-top: 24px; font-size: 11px; }
  .login-links { margin-top: 12px; }
}
@media (max-width: 360px) { .login-page { padding: 14px 12px; } .login-panel { padding: 25px 20px 17px; } .login-heading h1 { font-size: 23px; } .login-art { padding-inline: 20px; gap: 12px; } .art-heading > p { font-size: 10px; } .login-note { padding-inline: 6px; font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .login-submit, .login-field input { transition: none; } }
