/* NDV · Đăng nhập / Đăng ký (trang Tài khoản và popup đăng nhập ở đầu trang). Thông tin khách hàng dùng chung kiểu ô nhập. */
.ndv-auth, .ndv-profile { --a-primary: #1d4ed8; --a-ink: #0f172a; --a-text: #334155; --a-muted: #64748b; --a-line: #e2e8f0; --a-bg: #f8fafc; color: var(--a-text); font-size: 15px; }
.ndv-auth { max-width: 560px; margin: 8px auto 32px; padding: 22px 24px; background: #fff; border: 1px solid var(--a-line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.07); }
.ndv-auth *, .ndv-profile * { box-sizing: border-box; }
.ndv-auth h2 { margin: 0 0 14px; color: var(--a-ink); font-size: 20px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.ndv-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 18px; background: var(--a-bg); border: 1px solid var(--a-line); border-radius: 12px; }
.ndv-auth-tabs button { margin: 0; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--a-muted); font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; }
.ndv-auth-tabs button.is-on { background: #fff; color: var(--a-primary); box-shadow: 0 1px 3px rgba(15,23,42,.1); }
.ndv-auth-pane[hidden] { display: none !important; }
.ndv-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ndv-auth .ndv-f, .ndv-profile .ndv-f { display: grid; gap: 5px; align-content: start; margin: 0 0 12px; }
.ndv-f-wide { grid-column: 1 / -1; }
.ndv-auth label, .ndv-profile label { margin: 0; color: var(--a-ink); font-size: 13.5px; font-weight: 600; }
.ndv-auth .req, .ndv-profile .req { color: #dc2626; }
.ndv-auth .opt, .ndv-profile .opt { color: var(--a-muted); font-weight: 400; }
.ndv-auth small, .ndv-profile small { color: var(--a-muted); font-size: 12.5px; }
.ndv-auth input.input-text, .ndv-profile input.input-text { width: 100%; height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--a-line); border-radius: 10px; background: #fff; box-shadow: none; color: var(--a-ink); font-size: 15px; }
.ndv-auth input.input-text:focus, .ndv-profile input.input-text:focus { border-color: var(--a-primary); box-shadow: 0 0 0 3px rgba(29,78,216,.12); outline: 0; }
.ndv-profile input.input-text:disabled { background: var(--a-bg); color: var(--a-muted); }
.ndv-pw { position: relative; display: block; }
.ndv-pw input.input-text { padding-right: 44px; }
.ndv-pw-eye { position: absolute; top: 0; right: 0; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; opacity: .6; font-size: 16px; line-height: 44px; }
.ndv-pw-eye:hover { opacity: 1; }
.ndv-auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; }
.ndv-auth-row a, .ndv-auth-switch a, .ndv-terms a { color: var(--a-primary); font-weight: 600; }
.ndv-check { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: 500 !important; }
.ndv-check input { margin: 3px 0 0; }
.ndv-terms { display: flex !important; margin: 6px 0 18px !important; line-height: 1.5; }
.ndv-auth-submit { display: block; width: 100%; min-height: 46px; margin: 0; border: 0; border-radius: 10px; background: var(--a-primary); color: #fff; font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; }
.ndv-auth-submit:hover { background: #1e40af; }
.ndv-auth-switch { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--a-muted); }
/* Thông tin khách hàng */
.ndv-pf-card { padding: 18px 20px; margin: 0 0 14px; background: #fff; border: 1px solid var(--a-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 16px rgba(15,23,42,.06); }
.ndv-pf-card h3 { margin: 0 0 14px; color: var(--a-ink); font-size: 17px; font-weight: 700; text-transform: none; letter-spacing: 0; }
/* Popup đăng nhập của Flatsome */
.mfp-content .ndv-auth { margin: 0 auto; }
@media (max-width: 600px) {
	.ndv-auth { padding: 18px 16px; border-radius: 14px; }
	.ndv-auth-grid { grid-template-columns: 1fr; }
}
/* Nút trong form: màu xanh của khu tài khoản (không theo màu nút của theme). */
.ndv-auth .ndv-auth-submit, .ndv-auth button.ndv-auth-submit[type="submit"] { background: var(--a-primary) !important; border: 0 !important; color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
.ndv-auth .ndv-auth-submit:hover { background: #1e40af !important; }
/* Thanh đầu trang (Flatsome): chỉ một nút "Đăng nhập" (trang đăng nhập có sẵn thẻ Đăng ký). */
.header li.header-button-2, .header-top li.header-button-2 { display: none !important; }
.header li.account-item > a.nav-top-not-logged-in { display: inline-flex !important; align-items: center; height: 30px; padding: 0 14px 0 32px !important; position: relative; margin: 0 4px; border: 0 !important; border-radius: 999px; background-color: #fff !important; color: #1d4ed8 !important; font-size: 13px !important; font-weight: 700; text-transform: none !important; letter-spacing: 0 !important; line-height: 1; box-shadow: 0 1px 2px rgba(15,23,42,.15); text-decoration: none !important; transition: background .15s, transform .05s; }
.header li.account-item > a.nav-top-not-logged-in { padding-left: 32px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: 12px center !important; background-size: 15px 15px !important; }
/* Flatsome vẽ vạch gạch chân bằng ::before / ::after của link menu: tắt cho nút này (tránh biểu tượng nhảy khi di chuột / bấm giữ). */
.header li.account-item > a.nav-top-not-logged-in::before, .header li.account-item > a.nav-top-not-logged-in::after { content: none !important; display: none !important; }
.header li.account-item > a.nav-top-not-logged-in:hover { background-color: #eff4ff !important; }
.header li.account-item > a.nav-top-not-logged-in:active { transform: translateY(1px); }
.header li.account-item > a.nav-top-not-logged-in i, .header li.account-item > a.nav-top-not-logged-in .icon-user { display: none; }
/* Header nền trắng (điện thoại / dính khi cuộn): nút xanh chữ trắng. */
.header-main li.account-item > a.nav-top-not-logged-in, .header-wrapper.stuck li.account-item > a.nav-top-not-logged-in { background-color: #1d4ed8 !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") !important; color: #fff !important; box-shadow: none; }
