/* Lịch Việt Glass 12.1.8: native authentication / profile; UI-only. No changes to auth flows. */
body.lvg-auth-page {
  --auth18-bg:var(--n121-bg,#eaf3ed);
  --auth18-surface:#fbfffb;
  --auth18-ink:#153f35;
  --auth18-muted:#526f62;
  --auth18-line:#cadfd1;
  --auth18-field:#f4f8f4;
  --auth18-action:#0d705a;
  --auth18-on-action:#fff;
  --auth18-soft:#e1f0e6;
  --auth18-accent:#0d705a;
  background:var(--auth18-bg)!important;
  color:var(--auth18-ink)!important;
  font-family:'Bai Jamjuree',system-ui,sans-serif!important;
}
html[data-theme="dark"] body.lvg-auth-page {
  --auth18-bg:#082f28;--auth18-surface:#124538;--auth18-ink:#f7f0df;
  --auth18-muted:#c1d7cb;--auth18-line:#396e5b;--auth18-field:#174c40;
  --auth18-action:#e6c983;--auth18-on-action:#193b31;--auth18-soft:#215b48;
  --auth18-accent:#e8cd8d;
}
body.lvg-auth-page :is(button,input,textarea,select,a) {font-family:'Bai Jamjuree',system-ui,sans-serif;}
body.lvg-auth-page .shell {
  width:100%!important;max-width:680px!important;margin:0 auto!important;
  padding:0 12px calc(108px + env(safe-area-inset-bottom,0px))!important;min-width:0;
}
body.lvg-auth-page .shell>main {width:100%;max-width:none;min-width:0;}
body.lvg-auth-page .intro {padding:13px 2px 14px!important;gap:0!important;margin:0!important;min-height:0!important;display:block!important;}
body.lvg-auth-page .intro .eyebrow {font-size:12px!important;letter-spacing:.12em!important;color:var(--auth18-accent)!important;}
body.lvg-auth-page .intro h1 {font:700 clamp(25px,5vw,29px)/1.22 'Bai Jamjuree',system-ui,sans-serif!important;letter-spacing:-.035em!important;margin:5px 0 5px!important;color:var(--auth18-ink)!important;}
body.lvg-auth-page .intro p {font-size:15px!important;line-height:1.55!important;color:var(--auth18-muted)!important;margin:4px 0!important;max-width:43ch;}
body.lvg-auth-page .intro .stamp,
body.lvg-auth-page.v1218-auth-ready .v1218-auth-router {display:none!important;}
body.lvg-auth-page .v1218-auth-router {margin:0 0 12px!important;}
body.lvg-auth-page #guest, body.lvg-auth-page #signed {grid-template-columns:minmax(0,1fr)!important;gap:12px!important;max-width:100%;min-width:0;}
body.lvg-auth-page #guest .v1218-auth-panel,
body.lvg-auth-page #signed .v1218-profile-home {
  display:block;max-width:100%;width:100%;min-width:0;
  background:var(--auth18-surface)!important;color:var(--auth18-ink)!important;
  border:1px solid var(--auth18-line)!important;border-radius:18px!important;
  padding:clamp(17px,3vw,23px)!important;margin:0!important;
  box-shadow:0 12px 30px rgba(14,65,47,.065)!important;backdrop-filter:none!important;
}
/* Adjacent visibility guards share one declaration; selector specificity is unchanged. */
body.lvg-auth-page #guest.hidden,body.lvg-auth-page #signed.hidden,
body.lvg-auth-page.v120-auth-ready #guest [data-auth-panel]:not(.v120-auth-visible),
body.lvg-auth-page.v1218-reset-view #guest [data-auth-panel],
body.lvg-auth-page #guest .v1218-auth-panel.hidden {display:none!important;}
body.lvg-auth-page #guest #reset-panel:not(.hidden) {display:block!important;}
body.lvg-auth-page .v1218-auth-panel h2 {font-size:22px!important;line-height:1.3!important;letter-spacing:-.03em!important;margin:0 0 13px!important;color:var(--auth18-ink)!important;}
body.lvg-auth-page .v1218-helper {font-size:14px!important;line-height:1.6!important;color:var(--auth18-muted)!important;margin:2px 0 14px!important;}
body.lvg-auth-page .v1218-auth-form {display:grid;gap:0;min-width:0;}
body.lvg-auth-page .v1218-auth-form label {margin:12px 0 7px!important;font-size:15px!important;line-height:1.45!important;font-weight:650;color:var(--auth18-ink);}
body.lvg-auth-page .v1218-input-wrap {position:relative;display:flex;align-items:center;min-width:0;width:100%;}
body.lvg-auth-page .v1218-input-wrap>svg {position:absolute;left:15px;width:20px;height:20px;stroke:var(--auth18-muted);stroke-width:1.85;fill:none;pointer-events:none;}
body.lvg-auth-page .v1218-input-wrap input,
body.lvg-auth-page .v1218-auth-form input {
  height:52px!important;min-height:52px!important;min-width:0!important;width:100%!important;
  font:500 16px/1.4 'Bai Jamjuree',system-ui,sans-serif!important;
  padding:12px 14px 12px 44px!important;margin:0!important;border:1px solid var(--auth18-line)!important;
  border-radius:13px!important;background:var(--auth18-field)!important;color:var(--auth18-ink)!important;
  box-shadow:none!important;appearance:none;
}
body.lvg-auth-page .v1218-input-wrap input::placeholder {color:var(--auth18-muted);opacity:.82;}
body.lvg-auth-page .v1218-input-wrap:focus-within input {border-color:var(--auth18-accent)!important;outline:2px solid color-mix(in srgb,var(--auth18-accent) 25%,transparent);outline-offset:0;}
body.lvg-auth-page .v1218-password-wrap input {padding-right:58px!important;}
body.lvg-auth-page .v1218-password-toggle {
  position:absolute;right:4px;top:50%;transform:translateY(-50%);
  width:46px;height:44px;min-height:44px!important;padding:0!important;margin:0!important;
  display:flex;align-items:center;justify-content:center;border:0!important;
  border-radius:10px!important;background:transparent!important;color:var(--auth18-muted)!important;
  font:650 13px 'Bai Jamjuree',system-ui,sans-serif!important;box-shadow:none!important;
}
body.lvg-auth-page .v1218-password-toggle svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;}
body.lvg-auth-page .v1218-inline-link,
body.lvg-auth-page .v1218-bottom-action button {
  background:none!important;box-shadow:none!important;border:0!important;color:var(--auth18-accent)!important;
  padding:3px!important;min-height:37px!important;margin:0!important;
  font:700 14px/1.4 'Bai Jamjuree',system-ui,sans-serif!important;
  cursor:pointer;text-decoration:underline;text-underline-offset:3px;
}
body.lvg-auth-page .v1218-forgot-link {justify-self:end;margin-top:9px!important;}
body.lvg-auth-page .v1218-primary,
body.lvg-auth-page .v1218-primary:is(:hover,:focus-visible,:active) {
  display:flex;align-items:center;justify-content:center;gap:10px;
  width:100%;min-height:52px!important;border:1px solid transparent!important;border-radius:14px!important;
  background:var(--auth18-action)!important;color:var(--auth18-on-action)!important;
  font:700 16px/1.45 'Bai Jamjuree',system-ui,sans-serif!important;
  text-align:center;margin:14px 0 0!important;padding:12px 16px!important;box-shadow:none!important;
}
body.lvg-auth-page .v1218-primary svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;}
body.lvg-auth-page .v1218-primary:focus-visible,
body.lvg-auth-page .v1218-input-wrap button:focus-visible {outline:3px solid #d6b65f!important;outline-offset:3px!important;}
body.lvg-auth-page .v1218-bottom-action {display:flex;justify-content:center;align-items:center;gap:5px;flex-wrap:wrap;font-size:14px!important;line-height:1.5;color:var(--auth18-muted);margin:13px 0 0!important;}
body.lvg-auth-page .notice {background:var(--auth18-soft)!important;border:1px solid var(--auth18-line);color:var(--auth18-ink)!important;padding:13px 15px!important;margin:8px 0 12px!important;font-size:14px;line-height:1.5;}
body.lvg-auth-page .notice.error {background:#fff1ec!important;border-color:#e7b6aa!important;color:#87382e!important;}
html[data-theme="dark"] body.lvg-auth-page .notice.error {background:#512e2e!important;color:#ffe5dc!important;border-color:#a85852!important;}
body.lvg-auth-page #signed .v1218-profile-head {display:flex;align-items:center;gap:12px;padding:0 0 10px;border-bottom:1px solid var(--auth18-line);}
body.lvg-auth-page .v1218-avatar {width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:var(--auth18-soft);color:var(--auth18-accent);flex-shrink:0;}
body.lvg-auth-page .v1218-avatar svg {width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:1.9;}
body.lvg-auth-page .v1218-overline {font:700 12px/1.4 'Bai Jamjuree',system-ui,sans-serif;color:var(--auth18-accent);letter-spacing:.09em;}
body.lvg-auth-page .v1218-profile-head h2 {font-size:21px!important;color:var(--auth18-ink);margin:4px 0!important;}
body.lvg-auth-page #account-email {color:var(--auth18-ink)!important;font-size:16px!important;margin:13px 0 4px!important;overflow-wrap:anywhere;}
body.lvg-auth-page #verified-status {color:var(--auth18-muted)!important;font-size:14px!important;margin:0 0 7px;}
body.lvg-auth-page .v121-settings-menu {border:0!important;background:none!important;border-radius:0!important;padding:0!important;margin:14px 0 10px!important;box-shadow:none!important;gap:0!important;}
body.lvg-auth-page .v121-settings-menu :is(a,button) {min-height:58px;padding:12px 0!important;background:transparent!important;color:var(--auth18-ink)!important;border-bottom:1px solid var(--auth18-line)!important;border-radius:0!important;font-size:15px!important;line-height:1.45!important;margin:0!important;}
body.lvg-auth-page .v121-settings-menu :is(a,button) svg {width:20px;height:20px;stroke:var(--auth18-accent);stroke-width:1.8;fill:none;flex-shrink:0;}
body.lvg-auth-page .v121-settings-menu :is(a,button) span {color:var(--auth18-ink)!important;font-size:15px!important;font-weight:650!important;flex:1;}
body.lvg-auth-page .v121-settings-menu :is(a,button) b {font-size:23px;line-height:1;color:var(--auth18-muted);font-weight:500;}
body.lvg-auth-page .v1218-logout {display:block!important;min-height:48px!important;margin:14px 0 0!important;background:var(--auth18-soft)!important;color:var(--auth18-ink)!important;}
body.lvg-auth-page .v1218-verify {min-height:44px!important;margin:7px 0 5px!important;color:var(--auth18-ink)!important;background:var(--auth18-soft)!important;}
body.lvg-auth-page.v1218-setting-open #signed>.v1218-profile-home,
body.lvg-auth-page footer {display:none!important;}
body.lvg-auth-page :is([data-v121-settings-panel],#push-panel,#delete-panel).v121-settings-active {scroll-margin-top:75px;}
body.lvg-auth-page .shell .footnote {font-size:13px!important;line-height:1.55!important;color:var(--auth18-muted)!important;margin:18px 4px!important;}
@media(max-width:680px) {
  body.lvg-auth-page .shell {padding-inline:10px!important;}
  body.lvg-auth-page .intro {padding:13px 2px 11px!important;}
  body.lvg-auth-page #guest .v1218-auth-panel,body.lvg-auth-page #signed .v1218-profile-home {padding:17px!important;border-radius:17px!important;}
}
@media(prefers-reduced-motion:reduce) {body.lvg-auth-page .v1218-password-toggle,body.lvg-auth-page .v1218-primary {transition:none!important;}}

/* One screen heading only; login/register/recovery do not repeat it in the form. */
body.lvg-auth-page #guest .v1218-auth-panel>h2 {display:none!important;}
