/* Login panel ported from the supplied original LinkHoanXu source. */
.bv-login-modal-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px 30px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.bv-login-modal-scroll-area {
    flex: 1 1 auto;
}

.bv-login-modal-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.bv-login-modal-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.bv-login-modal-scroll-area::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 9999px;
}

.bv-login-modal-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

.bv-login-modal-overlay.open .bv-login-modal-card {
    transform: scale(1);
    opacity: 1;
}

.bv-login-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 24px;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.bv-login-modal-close:hover {
    color: #111827;
    background-color: #f3f4f6;
    transform: rotate(90deg);
}

.bv-login-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.bv-login-modal-subtitle {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    margin: 0 0 10px 0;
    line-height: 1.5;
    padding: 0 10px;
}

/* Warning alert box */
.bv-login-modal-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #F0F6FF;
    border: none;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 15px;
    text-align: left;
}

.bv-login-modal-warning .warning-icon {
    color: #1877F2;
    font-size: 28px;
    flex-shrink: 0;
    font-variation-settings: 'FILL' 1;
}

.bv-login-modal-warning .warning-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bv-login-modal-warning .warning-title {
    font-weight: 700;
    color: #1A202C;
    font-size: 14px;
    line-height: 1.4;
}

.bv-login-modal-warning .warning-desc {
    color: #718096;
    font-size: 13px;
    line-height: 1.4;
}

/* Security Notice Box */
.bv-login-security-notice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    background: linear-gradient(180deg, #EDF5FF 0%, #E2EFFF 100%);
    border: 1px solid #CBE0FC;
    border-radius: 14px;
    padding: 18px 6px 14px;
    margin-top: 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(24, 119, 242, 0.06);
}

.bv-security-badge-wrap {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    pointer-events: none;
}

.bv-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #FF6600 0%, #FF4500 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    padding: 4px 12px 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(255, 69, 0, 0.3);
    white-space: nowrap;
}

.bv-security-badge-icon {
    display: block;
    flex-shrink: 0;
}

.bv-security-ray {
    display: block;
    flex-shrink: 0;
    margin-bottom: 3px;
}

.bv-security-notice-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bv-security-notice-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.bv-security-notice-title {
    font-size: 19px;
    font-weight: 700;
    color: #004ecc;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.bv-security-notice-desc {
    font-size: 12px;
    font-weight: 400;
    color: #4b6078;
    line-height: 1.4;
}

/* Benefit columns */
.bv-login-modal-benefits {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 20px;
}

.bv-benefit-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 6px;
    position: relative;
}

.bv-benefit-col:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #e5e7eb;
}

.bv-benefit-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #FFF5F1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.bv-benefit-icon-wrap .material-symbols-outlined {
    color: #EE4D2D;
    font-size: 22px;
}

.bv-benefit-text {
    font-size: 11px;
    color: #4b5563;
    line-height: 1.4;
    font-weight: 500;
}

/* Shopee standard note */
.bv-login-modal-shopee-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    margin-top: 16px;
    margin-bottom: 12px;
}

.bv-login-modal-shopee-note .material-symbols-outlined {
    font-size: 18px;
    color: #9ca3af;
    flex-shrink: 0;
}

.bv-login-modal-fast-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    margin-bottom: 8px;
}

.bv-login-modal-social-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.bv-login-modal-zalo-wrapper {
    position: relative;
    flex: 1.2;
}

.bv-login-modal-zalo-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4d00;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(255, 77, 0, 0.2);
}

.bv-login-modal-btn-zalo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #0068ff;
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    height: 48px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    width: 100%;
}

.bv-login-modal-btn-zalo:hover {
    background-color: #0056d6;
    transform: translateY(-1px);
}

.bv-login-modal-btn-zalo:active {
    transform: translateY(0);
}

.bv-login-modal-btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #ffffff;
    color: #374151 !important;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    /* Pill/Capsule shape as in screenshot */
    padding: 8px 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
}

.bv-login-modal-btn-social:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.bv-login-modal-btn-social:active {
    transform: translateY(0);
}

.bv-login-modal-social-icon-svg {
    width: 25px;
    height: 25px;
    display: block;
}

.bv-login-modal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 15px;
}

.bv-login-modal-divider::before,
.bv-login-modal-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.bv-login-modal-divider span {
    padding: 0 12px;
    font-weight: 500;
}

.bv-login-modal-form-group {
    margin-bottom: 16px;
}

.bv-login-modal-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #ffffff;
    padding: 0 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    padding: 8px 12px;
}

.bv-login-modal-input-wrap:focus-within {
    border-color: #ff4d00;
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.1);
}

.bv-login-modal-input-wrap .material-symbols-outlined {
    color: #9ca3af;
    font-size: 20px;
    margin-right: 10px;
    user-select: none;
}

.bv-login-modal-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0;
    font-size: 14px;
    color: #111827;
    background: transparent;
    height: 100%;
    width: 100%;
}

.bv-login-modal-input-wrap input::placeholder {
    color: #9ca3af;
}

.bv-login-modal-toggle-password {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: color 0.2s;
}

.bv-login-modal-toggle-password:hover {
    color: #4b5563;
}

.bv-login-modal-toggle-password .material-icons-outlined {
    margin-right: 0;
}

.bv-login-modal-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.bv-login-modal-remember-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}

.bv-login-modal-remember-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom premium orange checkbox */
.bv-login-modal-custom-checkbox {
    height: 18px;
    width: 18px;
    background-color: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.bv-login-modal-remember-label:hover input~.bv-login-modal-custom-checkbox {
    border-color: #EE4D2D;
}

.bv-login-modal-remember-label input:checked~.bv-login-modal-custom-checkbox {
    background-color: #EE4D2D;
    border-color: #EE4D2D;
}

.bv-login-modal-custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.bv-login-modal-remember-label input:checked~.bv-login-modal-custom-checkbox::after {
    display: block;
}

.bv-login-modal-forgot-link {
    font-size: 13px;
    color: #0068ff;
    text-decoration: none;
    font-weight: 600;
}

.bv-login-modal-forgot-link:hover {
    text-decoration: underline;
}

.bv-login-modal-btn-submit {
    width: 100%;
    background-color: #EE4D2D;
    /* Shopee-like vibrant orange-red color */
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(238, 77, 45, 0.15);
}

.bv-login-modal-btn-submit:hover {
    background-color: #e03c1a;
}

.bv-login-modal-btn-submit:active {
    transform: scale(0.99);
}

.bv-login-modal-btn-submit:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.bv-login-modal-register-prompt {
    font-size: 14px;
    text-align: center;
    color: #4b5563;
    margin-top: 20px;
}

.bv-login-modal-register-prompt a {
    color: #0068ff;
    text-decoration: none;
    font-weight: 600;
}

.bv-login-modal-register-prompt a:hover {
    text-decoration: underline;
}

.bv-login-modal-secure-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    margin-top: 15px;
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
}

.bv-login-modal-secure-footer .material-symbols-outlined {
    font-size: 16px;
    color: #9ca3af;
}

.bv-login-modal-error-alert {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
}

body.stop-scroll {
    overflow: hidden;
}

@media (max-width: 576px) {
    .bv-login-modal-card {
        padding: 30px 24px;
    }

    .bv-login-modal-social-row {
        flex-direction: column;
        gap: 8px;
    }

    .bv-login-modal-zalo-wrapper {
        flex: auto;
    }
}

