/* پاپ آپ سراسری */
.bf-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

.bf-popup-container {
    background: #fff;
    border-radius: 26px;
    width: 450px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.bf-popup-close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f2f5;
    transition: background 0.2s, color 0.2s;
}

.bf-popup-close-btn:hover {
    color: #000;
    background: #e4e6eb;
}

/* ساختار پایه فرم‌ها */
.main-banowit-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 26px;
    text-align: center;
}

.banowit-wrapper {
    max-width: 400px;
    margin: 0 auto;
    padding: 4px;
    border-radius: 26px;
    font-family:Dana;
    
}

span.title-section-login {
    font-size: 22px;
    color: black;
    margin-bottom: 10px;
    font-weight: 600;
}

.banowit-wrapper .subtitle { color: #888; font-size: 13px; margin-bottom: 20px; display: block; }
.banowit-wrapper input, .banowit-wrapper textarea {
    width: 100% !important;
    padding: 16px 24px !important;
    margin-bottom: 15px !important;
    border: 1px solid #D6DCE5 !important;
    border-radius: 25px !important;
    background: #fdfdfd !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    height: 50px !important;
}


.banowit-wrapper textarea {
    height: 150px !important;
}


.bf-row { display: flex; gap: 10px; }
.bf-col { flex: 1; }

.btn-blue {
    background: #2A367D !important; color: #fff !important; border: none  !important;
    padding: 15px !important;
    border-radius: 30px !important; width: 100% !important;
    cursor: pointer !important; font-weight: 500 !important; font-family: inherit !important;
    font-size: 16px !important; margin-top: 10px !important;
}
.btn-blue:hover { background: #0b5ed7; color: white; }

.btn-text {
    border: none !important;
    color: #19213D !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: 16px !important;
    padding: 7px 26px !important;
    margin-top: 10px !important;
    border-radius: 50px;
    background: none;
}
.btn-text:hover {
    background: none;
    color: #19213D;
}

.terms-text {
    font-size: 10px;
    color: #19213D;
    margin-bottom: 0;
}
.terms-text a { color: #0d6efd; }

.success-icon {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.bf-view-section label {
    font-size: 12px;
    text-align: start;
    color: #19213D;
    display: block;
    margin-bottom: 10px;
}

.banowit-wrapper form {
    margin-top: 20px;
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}
@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.btn-blue:disabled, .btn-text:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.otp-actions {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    gap: 10px;
}
.otp-actions .btn-text {
    background: #f0f2f7;
    border-radius: 25px;
    padding: 8px 15px;
    width: auto;
    margin-top: 0;
    font-size: 14px;
}

/* رمز عبور و چشم (SVG) */
.password-field-container {
    position: relative;
    width: 100%;
}
.password-field-container input {
    padding-left: 50px !important; /* فضا جهت تراز آیکون چشمی */
}
.toggle-password-visibility {
    position: absolute;
    left: 15px;
    top: 25px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.2s;
}
.toggle-password-visibility:hover {
    color: #19213D;
}

/* بخش ارزیابی قدرت و قواعد رمز */
.strength-meter-container {
    margin: -5px 0 15px;
    text-align: right;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}
.strength-meter-bar {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 5px;
}
.strength-meter-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}
.strength-status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}
.strength-text {
    font-weight: 600;
}
.password-rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}



.bf-tabs-nav {
    display: flex;
    background: #EBEFF6;
    border-radius: 20px;
    padding: 5px;
    gap: 5px;
        margin-bottom: 15px;

}

#bf-login-register-view , #bf-register-view {
    background: #fff;
    position: relative;
}


.child-form {
    padding: 4px;
    background: #EBEFF6;
    border-radius: 26px;
}


.bf-tab-btn {
    flex: 1;
    border: none !important;
    background: transparent !important;
    color: #8D96A6 !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 12px 10px !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    outline: none !important;
    box-shadow: none !important;
}

.bf-tab-btn.active {
    background: #FFFFFF !important;
    color: black !important;
}

.banowit-wrapper input {
    font-size: 14px !important;
    color: #19213D !important;
}

.btn-otp-toggle {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    color: #19213D !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 15px !important;
    text-align: center !important;
    transition: color 0.2s;
    outline: none !important;
    padding: 5px 0 !important;
}

.btn-otp-toggle:hover {
    color: #2A367D !important;
}

.main-banowit-wrapper {
    position: relative;
    overflow: hidden;
}

.bf-view-footer {
    text-align: center;
    border-top: 1px solid #E2E8F0;
    padding-top: 15px;
    margin-top: 10px;
}

.bf-view-footer .btn-text {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #4A5568 !important;
    text-decoration: underline !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
}

.bf-view-footer .btn-text:hover {
    color: #1A202C !important;
    background: none !important;
}
.password-rules-list li {
    font-size: 10.5px;
    color: #8892a0;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.password-rules-list li::before {
    content: "○";
    font-size: 11px;
    color: #ccc;
}
.password-rules-list li.valid {
    color: #4caf50;
    font-weight: 500;
}
.password-rules-list li.valid::before {
    content: "●";
    color: #4caf50;
}