/* Trang đăng nhập/đăng ký của phụ huynh [dmb_auth]. Font Be Vietnam Pro đóng gói sẵn (dùng lại @font-face của dmb-growth.css). */
@font-face { font-family: 'DMB Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(../vendor/fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'DMB Be Vietnam Pro'; font-style: normal; font-weight: 400; font-display: swap; src: url(../vendor/fonts/be-vietnam-pro-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'DMB Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(../vendor/fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'DMB Be Vietnam Pro'; font-style: normal; font-weight: 600; font-display: swap; src: url(../vendor/fonts/be-vietnam-pro-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

.dmb-auth { --leaf: #1E5A43; --leaf-2: #2E7D5B; --mist: #F4F7F3; --ink: #1C2733; --muted: #566472; --line: #CBD6CE; --amber: #E7A33E; --err: #B3382C;
  box-sizing: border-box; max-width: 440px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; color: var(--ink);
  font-family: 'DMB Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.55; }
.dmb-auth *, .dmb-auth *::before, .dmb-auth *::after { box-sizing: border-box; }
.dmb-auth__card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }

/* Đường tăng trưởng: dải bách phân vị + chấm hổ phách đặt dần lên đường trung vị (chuyển động duy nhất của trang). */
.dmb-auth__curve { display: block; width: 100%; height: 72px; background: var(--mist); }
.dmb-auth__band { fill: none; stroke: var(--leaf-2); stroke-linecap: round; }
.dmb-auth__dot { fill: var(--amber); stroke: #fff; stroke-width: 3; }
.dmb-auth__dot { animation: dmb-auth-settle 900ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes dmb-auth-settle { from { transform: translate(-70px, 34px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dmb-auth__dot { animation: none; } }

.dmb-auth__body { padding: 18px 22px 20px; animation: dmb-auth-in 260ms ease-out both; }
@keyframes dmb-auth-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dmb-auth__body { animation: none; } }
.dmb-auth__title { margin: 0 0 4px; font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--leaf); }
.dmb-auth__lead { margin: 0 0 14px; color: var(--muted); font-size: 15px; }

.dmb-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 14px; background: var(--mist); border-radius: 14px; }
.dmb-auth__tab { min-height: 42px; border: 0; border-radius: 11px; background: transparent; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.dmb-auth__tab[aria-selected=true] { background: #fff; color: var(--leaf); box-shadow: 0 1px 3px rgba(28,39,51,.14); }

.dmb-auth__field { display: block; margin: 0 0 12px; }
.dmb-auth__label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 15px; }
.dmb-auth__box { position: relative; }
.dmb-auth input[type=text], .dmb-auth input[type=email], .dmb-auth input[type=password], .dmb-auth input[type=tel] { width: 100%; min-height: 50px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-size: 17px; color: inherit; background: #fff; }
.dmb-auth input[type=password].has-toggle { padding-right: 76px; }
.dmb-auth input:focus { outline: none; border-color: var(--leaf-2); box-shadow: 0 0 0 3px rgba(46,125,91,.2); }
.dmb-auth__field.is-bad input { border-color: var(--err); }
.dmb-auth__err { margin: 6px 0 0; color: var(--err); font-size: 14px; }
.dmb-auth__show { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); min-height: 40px; padding: 0 10px; border: 0; background: transparent; color: var(--leaf-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 8px; }
.dmb-auth__hint { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.dmb-auth__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dmb-auth__check { display: flex; align-items: center; gap: 10px; margin: 2px 0 18px; font-size: 15px; cursor: pointer; }
.dmb-auth__check input { width: 22px; height: 22px; accent-color: var(--leaf-2); }

.dmb-auth__submit { width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: var(--leaf); color: #fff; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.dmb-auth__submit:hover { background: #174a37; }
.dmb-auth__submit:disabled { opacity: .6; cursor: progress; }
.dmb-auth__submit[aria-busy="true"] { opacity: .85; display: flex; align-items: center; justify-content: center; gap: 10px; }
.dmb-auth__submit[aria-busy="true"]::before { content: ""; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: dmb-auth-spin .7s linear infinite; }
@keyframes dmb-auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dmb-auth__submit[aria-busy="true"]::before { animation-duration: 2s; } }
.dmb-auth__alert { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #FBEDEA; color: var(--err); font-size: 15px; }
.dmb-auth__ok { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #E8F3EC; color: var(--leaf); font-size: 15px; }
.dmb-auth__link { display: inline-block; min-height: 44px; padding: 10px 2px; border: 0; background: none; color: var(--leaf-2); font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dmb-auth__foot { margin: 10px 0 0; text-align: center; }
.dmb-auth a.dmb-auth__submit, .dmb-auth a.dmb-auth__submit:visited, .dmb-auth a.dmb-auth__submit:hover, .dmb-auth a.dmb-auth__submit:focus { display: flex; align-items: center; justify-content: center; text-decoration: none; color: #fff; }
.dmb-auth :focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Logo về trang chủ (header của theme đã tắt trên trang này) */
.dmb-auth__logo { display: flex; justify-content: center; align-items: center; min-height: 48px; margin: 0 0 12px; color: var(--leaf); font-weight: 600; font-size: 20px; text-decoration: none; }
.dmb-auth__logo img { display: block; width: auto; height: auto; max-width: 220px; max-height: 56px; opacity: 1 !important; filter: none !important; visibility: visible !important; image-rendering: auto; }

/* Các bước đăng ký + ô nhập mã */
.dmb-auth__steps { display: flex; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.dmb-auth__steps li { flex: 1; height: 5px; border-radius: 3px; background: var(--line); transition: background 240ms; }
.dmb-auth__steps li.is-on { background: var(--leaf-2); }
.dmb-auth input.is-code { text-align: center; font-size: 28px; font-weight: 600; letter-spacing: .5em; padding-left: calc(14px + .5em); min-height: 60px; }
.dmb-auth__link:disabled { color: var(--muted); text-decoration: none; cursor: default; }
@media (max-height: 640px) { .dmb-auth__curve { display: none; } .dmb-auth__logo { margin-bottom: 6px; } }
/* D-88: chọn chủ đề quan tâm khi đăng ký */
.dmb-auth__interests { border: 0; padding: 0; margin: 4px 0 16px; }
.dmb-auth__interests legend { font-weight: 700; margin: 0 0 8px; padding: 0; }
.dmb-auth__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dmb-auth__chip { min-height: 40px; padding: 6px 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; line-height: 1.25; text-align: left; cursor: pointer; }
.dmb-auth__chip[aria-pressed="true"] { border-color: var(--leaf-2); background: var(--mist); color: var(--leaf); font-weight: 700; }
.dmb-auth__chip::before { content: "✓"; display: inline-block; width: 1.1em; opacity: 0; transition: opacity 120ms; }
.dmb-auth__chip[aria-pressed="true"]::before { opacity: 1; }
.dmb-auth__chip { font-weight: 600; touch-action: manipulation; }
.dmb-auth__chips { overflow-anchor: none; }
.dmb-auth__chip:focus-visible { outline: 3px solid rgba(46,125,91,.35); outline-offset: 2px; }
body .dmb-auth .dmb-auth__chip:hover, body .dmb-auth .dmb-auth__chip:focus { background: #fff; color: var(--ink); }
body .dmb-auth .dmb-auth__chip[aria-pressed="true"]:hover, body .dmb-auth .dmb-auth__chip[aria-pressed="true"]:focus { background: var(--mist); color: var(--leaf); }
/* 30/11: chip kiểu đơn giản (xám → xanh đậm khi chọn), không dấu ✓ nên không đổi độ rộng */
.dmb-auth__chip { border: 0; border-radius: 10px; background: #ECEFEC; min-height: 44px; padding: 10px 16px; font-weight: 500; transition: background 140ms, color 140ms; }
.dmb-auth__chip::before { content: none; }
.dmb-auth__chip[aria-pressed="true"] { background: var(--leaf); color: #fff; font-weight: 700; }
body .dmb-auth .dmb-auth__chip:hover, body .dmb-auth .dmb-auth__chip:focus { background: #E2E7E3; color: var(--ink); }
body .dmb-auth .dmb-auth__chip[aria-pressed="true"]:hover, body .dmb-auth .dmb-auth__chip[aria-pressed="true"]:focus { background: #174733; color: #fff; }
