/* Font chữ chung cho khu vực Hà Nội: Estedad (Google Font) */
html, body, input, button, select, textarea {
    font-family: 'Estedad', "Roboto", Helvetica, Arial, sans-serif;
}

/* Hà Nội: nút Đăng nhập rộng bằng ô mã bảo vệ (140px), canh trái thẳng hàng */
.button-login button {
    width: 140px;
}

/* ==== Đăng nhập: form căn giữa, tông pastel ==== */
html, body {
    overflow: auto;
}
.login-hnw {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #eaf1fc 0%, #eef8f3 100%);
}
.login-hnw-left {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(91, 127, 219, .12);
    padding: 40px 40px 32px;
    box-sizing: border-box;
}
.login-hnw-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.login-hnw-logo img {
    height: auto;
    width: 220px;
    max-width: 100%;
}
.login-hnw-formwrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-hnw-form {
    width: 100%;
    max-width: 340px;
}
.login-hnw-form h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2f3b52;
    margin: 8px 0 20px;
    text-align: center;
}
.login-hnw-field {
    position: relative;
    margin-bottom: 16px;
}
.login-hnw-field .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9db4d9;
    pointer-events: none;
}
.login-hnw-field .icon svg {
    width: 100%;
    height: 100%;
}
.login-hnw-field input {
    width: 100%;
    height: 46px;
    padding: 0 40px 0 42px;
    border: 1.5px solid #dfe7f5;
    border-radius: 10px;
    font-size: 15px;
    color: #2f3b52;
    outline: none;
    box-sizing: border-box;
    box-shadow: none;
    background: #f7f9fd;
    transition: border-color .15s ease, background .15s ease;
}
.login-hnw-field input::placeholder {
    color: #a7b1c4;
}
.login-hnw-field input:focus {
    border-color: #a9c3f5;
    background: #fff;
}
.login-hnw-field .toggle-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9db4d9;
    cursor: pointer;
}
.login-hnw-field .toggle-eye svg {
    width: 100%;
    height: 100%;
}
.login-hnw-field .password-clear {
    position: absolute;
    right: 40px;
    top: 6px;
}
.login-hnw-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.login-hnw-captcha-row .login-hnw-field {
    flex: 1;
    margin-bottom: 0;
}
.login-hnw-captcha-row .login-hnw-field input {
    padding-left: 16px;
}
.login-hnw-captcha-row .captcha-container {
    width: auto;
    margin-top: 0;
    display: flex;
    align-items: center;
}
.login-hnw-forgot {
    text-align: right;
    margin: -6px 0 20px;
}
.login-hnw-forgot a {
    font-size: 14px;
    font-weight: 600;
    color: #6f8fe0;
    text-decoration: none;
}
.login-hnw-forgot a:hover {
    text-decoration: underline;
}
.login-hnw-submit {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #7ba7f2 0%, #5b86e6 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    box-shadow: 0 8px 18px rgba(91, 134, 230, .28);
    transition: filter .15s ease;
}
.login-hnw-submit:hover {
    filter: brightness(0.95);
}
.login-hnw-divider {
    position: relative;
    text-align: center;
    margin: 26px 0 18px;
}
.login-hnw-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #e9edf6;
}
.login-hnw-divider span {
    position: relative;
    background: #fff;
    padding: 0 12px;
    font-size: 13px;
    color: #a7b1c4;
}
.login-hnw-alt-btn {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    margin-bottom: 12px;
    border: 1.5px solid #dfe7f5;
    border-radius: 10px;
    background: #f7f9fd;
    font-size: 14px;
    font-weight: 600;
    color: #4a5468;
    cursor: pointer;
    outline: none;
    text-align: left;
    transition: border-color .15s ease, background .15s ease;
}
.login-hnw-alt-btn:hover {
    border-color: #a9c3f5;
    background: #eef4ff;
}
.login-hnw-alt-btn .badge {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.login-hnw-alt-btn .badge.vneid {
    background: #8fd9b6;
    color: #1f5c40;
}
.login-hnw-alt-btn .badge.sso {
    background: #a9c3f5;
    color: #234b91;
}
.login-hnw-footer-note {
    padding-top: 24px;
}
.login-hnw-footer-note p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #a7b1c4;
    text-align: center;
}

/* Đồng bộ hộp thoại thông báo (BootstrapDialog, vd "Không xử lý được chức năng") với giao diện đăng nhập pastel */
.bootstrap-dialog .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(91, 127, 219, .18);
}
.bootstrap-dialog .modal-header {
    background: linear-gradient(135deg, #7ba7f2 0%, #5b86e6 100%) !important;
    border-bottom: 0;
    padding: 16px 20px;
}
.bootstrap-dialog .bootstrap-dialog-title {
    color: #fff !important;
    font-weight: 700;
}
.bootstrap-dialog .bootstrap-dialog-close-button {
    color: #fff;
}
.bootstrap-dialog .modal-body {
    padding: 20px;
    color: #2f3b52;
    font-size: 14px;
}
.bootstrap-dialog .modal-footer {
    border-top: 1px solid #e9edf6;
    padding: 12px 20px;
    background: #fff;
}
.bootstrap-dialog .modal-footer .btn {
    border-radius: 8px;
    border: 0;
    background: linear-gradient(135deg, #7ba7f2 0%, #5b86e6 100%);
    color: #fff;
    font-weight: 600;
    padding: 8px 18px;
    box-shadow: none;
    text-shadow: none;
}
.bootstrap-dialog .modal-footer .btn:hover {
    filter: brightness(0.95);
}
@media (max-width: 900px) {
    .login-hnw-left {
        max-width: 100%;
        padding: 32px 24px;
    }
}
