/* =====================================================
   پیامک آی پی پنل - فرم ورود و ثبت‌نام
   ===================================================== */

.ippanel-sms-box {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 0 25px rgba(0,0,0,.04);
    border-radius: 6px;
    padding: 40px 35px;
    margin: 40px auto;
    max-width: 440px;
    width: 100%;
    text-align: right;
    box-sizing: border-box;
    direction: rtl;
    font-family: inherit;
}

.ippanel-sms-box h3 {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #222;
    margin: 0 0 30px;
}

/* زبانه‌های داخل باکس - تمام عرض */
.ippanel-auth-tabs {
    display: flex;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
    margin: 0 0 24px;
    gap: 4px;
}

.ippanel-auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: bold;
    font-family: inherit;
    color: #888;
    cursor: pointer;
    border-radius: 6px;
    transition: background .2s, color .2s;
}

.ippanel-auth-tab.active {
    background: #ff5c00;
    color: #fff;
    box-shadow: 0 2px 6px rgba(255,92,0,.3);
}

.ippanel-auth-wrapper .ippanel-sms-box {
    margin: 40px auto;
}

/* فیلدها */
.ippanel-sms-box input[type="text"],
.ippanel-sms-box input[type="tel"],
.ippanel-sms-box input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 16px;
    box-sizing: border-box;
    font-size: 14px;
    background: #fff;
    text-align: right;
    transition: border-color .2s;
    font-family: inherit;
    outline: none;
}

.ippanel-sms-box input:focus { border-color: #ff5c00; }
.ippanel-sms-box input::placeholder { color: #999; }

/* دکمه نارنجی */
.ippanel-sms-box .ippanel-btn {
    width: 100%;
    background: #ff5c00;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    font-family: inherit;
    transition: background .2s;
    margin-top: 4px;
}
.ippanel-sms-box .ippanel-btn:hover { background: #e65200; }
.ippanel-sms-box .ippanel-btn:disabled { opacity: .6; cursor: not-allowed; }

/* لینک بازگشت */
.ippanel-sms-box .link {
    background: none;
    border: none;
    color: #ff5c00;
    cursor: pointer;
    margin-top: 12px;
    font-size: 13px;
    font-family: inherit;
    padding: 0;
}

/* پیام */
.ippanel-msg {
    margin-top: 14px;
    font-size: 13px;
    text-align: center;
    min-height: 18px;
}
.ippanel-msg.err { color: #e02020; }
.ippanel-msg.ok  { color: #00a04d; }

/* متن مرحله دوم */
.ippanel-sms-box p {
    font-size: 13px;
    color: #555;
    margin: 0 0 16px;
    text-align: right;
}

/* چک‌باکس */
.ippanel-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333;
    margin: 4px 0 16px;
    cursor: pointer;
}
.ippanel-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ff5c00;
    cursor: pointer;
}

/* ردیف لینک‌های پایین */
.ippanel-links {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
}
.ippanel-links a { color: #ff5c00; text-decoration: none; }
.ippanel-links a:hover { text-decoration: underline; }
.ippanel-links .ippanel-sep { color: #999; margin: 0 8px; }

/* فیلد رمز با آیکون چشم */
.ippanel-pass-wrap { position: relative; margin-bottom: 16px; }
.ippanel-pass-wrap input { margin-bottom: 0 !important; padding-left: 44px !important; }
.ippanel-eye {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 17px;
    color: #999;
    padding: 4px;
    line-height: 1;
}
.ippanel-eye:hover { color: #ff5c00; }

/* موبایل */
@media (max-width: 520px) {
    .ippanel-sms-box {
        padding: 28px 20px;
        margin: 20px auto;
        border: none;
        box-shadow: none;
    }
}