/* Polish auth B2C cho khớp B2B/TaiKhoan — checkbox, disabled, overlay helper.
   Không đổi màu brand (#0b79b8). */

.asp-checkbox-container span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.asp-checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.3rem;
    height: 1.3rem;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background-color: #f8fafc;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    margin: 0;
}

.asp-checkbox-container input[type="checkbox"]:checked {
    background-color: #0b79b8;
    border-color: #0b79b8;
    box-shadow: 0 4px 6px -1px rgba(11, 121, 184, 0.3);
}

.asp-checkbox-container input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    font-size: 0.75rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.asp-checkbox-container span.aspNetDisabled input[type="checkbox"],
.asp-checkbox-container input[type="checkbox"]:disabled {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed;
}

input:disabled:not([type="submit"]):not([type="button"]),
select:disabled {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
}

.btn-submit-disabled {
    background: #cbd5e1 !important;
    color: #f8fafc !important;
    cursor: not-allowed !important;
    pointer-events: none;
    box-shadow: none !important;
    transform: none !important;
}

.btn-social-disabled {
    background: #f8fafc !important;
    color: #cbd5e1 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    filter: grayscale(1);
}

/* Select2 auth/register — gần B2B register */
.mod-auth-s2 .select2-selection--single,
.select2-container.mod-auth-s2 .select2-selection--single {
    height: 42px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    background-color: #f9fafb !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--open.mod-auth-s2 .select2-selection--single {
    border-color: #0b79b8 !important;
    box-shadow: 0 0 0 3px rgba(11, 121, 184, 0.15) !important;
    background-color: #ffffff !important;
}

/* Form đăng ký B2B + B2C — thoáng, khớp nút login (mod-auth-btn) */
.reg-form {
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding: 8px 0 24px;
}

.reg-form .reg-title {
    margin-bottom: 20px;
}

.reg-form .reg-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.25;
    margin: 0 0 6px;
    color: #111827;
}

.reg-form .reg-title p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.reg-form .reg-google {
    margin-bottom: 16px;
}

.reg-form .reg-sep {
    position: relative;
    margin: 16px 0 20px;
}

.reg-form .reg-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.reg-form .reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.reg-form label,
.reg-form .reg-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #374151;
}

.reg-form .reg-input,
.reg-form input[type="text"],
.reg-form input[type="password"],
.reg-form input[type="email"],
.reg-form input[type="tel"],
.reg-form input[type="number"],
.reg-form select {
    display: block;
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.925rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.reg-form input[type="password"] {
    padding-right: 42px;
}

/* Chỉ ô nhập — tuyệt đối không đụng input[type=submit] (nút XÁC NHẬN) */
.reg-form .reg-input:focus,
.reg-form input[type="text"]:focus,
.reg-form input[type="password"]:focus,
.reg-form input[type="email"]:focus,
.reg-form input[type="tel"]:focus,
.reg-form input[type="number"]:focus,
.reg-form select:focus {
    background: #fff;
    border-color: #0b79b8;
    box-shadow: 0 0 0 4px rgba(11, 121, 184, 0.12);
}

.reg-form .reg-captcha-input {
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #0b79b8;
    background: #fff;
    border-width: 2px;
}

.reg-form .reg-box {
    padding: 14px;
    border-radius: 12px;
}

.reg-form .reg-captcha-hint {
    display: block;
    margin: 6px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
}

.reg-form .reg-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
}

.reg-form .mod-auth-btn,
.reg-form .mod-auth-btn-google {
    margin: 4px 0 0;
}

.reg-form a.mod-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
}

/* Khóa nút đăng ký: hover/focus/active luôn xanh chữ trắng */
.reg-form input[type="submit"].mod-auth-btn,
.reg-form input[type="button"].mod-auth-btn,
.reg-form input[type="submit"].mod-auth-btn:hover,
.reg-form input[type="submit"].mod-auth-btn:focus,
.reg-form input[type="submit"].mod-auth-btn:focus-visible,
.reg-form input[type="submit"].mod-auth-btn:active {
    display: block !important;
    height: 50px !important;
    min-height: 50px !important;
    line-height: 48px !important;
    padding: 0 16px !important;
    border: none !important;
    background-color: #0b79b8 !important;
    background-image: linear-gradient(135deg, #0b79b8, #0ea5e9) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px -3px rgba(11, 121, 184, 0.4);
    -webkit-appearance: none;
    appearance: none;
}

.reg-form input[type="submit"].mod-auth-btn.btn-submit-disabled,
.reg-form input[type="submit"].mod-auth-btn:disabled {
    background-color: #cbd5e1 !important;
    background-image: none !important;
    color: #f8fafc !important;
    box-shadow: none !important;
}

.reg-form .select2-container .select2-selection--single,
.reg-form .ola-loc-select2.select2-selection--single,
.reg-form .ola-loc-select2 .select2-selection--single,
.reg-form .select2-container.ola-loc-select2 .select2-selection--single {
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
}

.reg-form .select2-container--default .select2-selection--single .select2-selection__arrow,
.reg-form .ola-loc-select2 .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
}

.reg-form .select2-container--default .select2-selection--single .select2-selection__rendered,
.reg-form .ola-loc-select2 .select2-selection--single .select2-selection__rendered {
    line-height: 42px !important;
    font-size: 0.925rem !important;
}

.reg-form .reg-captcha-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.reg-form .reg-captcha-field {
    width: 140px;
    flex-shrink: 0;
}

@media (max-width: 639px) {
    .reg-form .reg-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .reg-form .reg-title h2 {
        font-size: 1.5rem;
    }

    .reg-form .reg-captcha-row {
        flex-direction: column;
        align-items: stretch;
    }

    .reg-form .reg-captcha-field {
        width: 100%;
    }
}
