/* assets/css/themes.css */

/* ===== Base Styles ===== */
.plp-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    padding: 30px 15px;
    font-family: 'Vazirmatn', 'Vazir', 'IRANSans', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    unicode-bidi: embed;
    width: 100%;
    box-sizing: border-box;
}

/* حالت full-screen مخصوص صفحه اختصاصی */
body.plp-dedicated-login-page {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    background: transparent !important;
}

body.plp-dedicated-login-page .plp-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 50px 40px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 992px) {
    body.plp-dedicated-login-page .plp-wrapper {
        padding: 40px 30px !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 768px) {
    body.plp-dedicated-login-page .plp-wrapper {
        padding: 30px 25px !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 480px) {
    body.plp-dedicated-login-page .plp-wrapper {
        padding: 25px 15px !important;
        overflow-y: auto !important;
    }
}

@media (max-height: 700px) {
    body.plp-dedicated-login-page .plp-wrapper {
        padding: 20px 40px !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 992px) {
    body.plp-dedicated-login-page .plp-wrapper {
        padding: 40px 30px !important;
    }
}

@media (max-width: 768px) {
    body.plp-dedicated-login-page .plp-wrapper {
        padding: 30px 25px !important;
    }
}

@media (max-width: 480px) {
    body.plp-dedicated-login-page .plp-wrapper {
        padding: 25px 15px !important;
    }
}

@media (max-height: 700px) {
    body.plp-dedicated-login-page .plp-wrapper {
        padding: 20px 40px !important;
        overflow-y: auto !important;
    }
}

/* اطمینان از RTL بودن تمام عناصر */
.plp-wrapper * {
    box-sizing: border-box;
}

/* اینپوت‌های فارسی: راست‌چین */
.plp-wrapper input[type="text"],
.plp-wrapper input[type="password"],
.plp-wrapper input[type="email"],
.plp-wrapper input[type="tel"] {
    direction: ltr;
    text-align: left;
    font-family: inherit;
}

/* اینپوت‌های فارسی در فیلدهای خاص: راست‌چین */
.plp-wrapper .plp-field label {
    direction: rtl;
    text-align: right;
}

/* استثنا برای اینپوت‌های عددی و کد */
.plp-wrapper input[type="tel"],
.plp-wrapper .plp-otp-input,
.plp-wrapper .plp-captcha-input {
    direction: ltr;
    text-align: center;
}

.plp-wrapper .plp-captcha-equation {
    direction: ltr;
    text-align: center;
}

.plp-login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    padding: 45px 40px;
    box-sizing: border-box;
    animation: plp-fadeIn 0.5s ease;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .plp-login-card {
        padding: 35px 25px;
        border-radius: 12px;
    }
}

@keyframes plp-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes plp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Logo */
.plp-logo {
    text-align: center;
    margin-bottom: 15px;
}
.plp-logo img {
    max-width: 80px;
    height: auto;
}
.plp-logo-placeholder {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Title */
.plp-title {
    text-align: center;
    font-size: 20px;
    margin: 0 0 8px;
    font-weight: 700;
}
.plp-subtitle {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin: 0 0 15px;
    font-weight: 400;
}

/* Tabs */
.plp-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background: rgba(0,0,0,0.03);
    padding: 3px;
    border-radius: 8px;
}
.plp-tab {
    flex: 1;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    font-family: inherit;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.plp-tab:hover {
    background: rgba(0,0,0,0.05);
}
.plp-tab.active {
    background: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.plp-tab-content {
    display: none;
}
.plp-tab-content.active {
    display: block;
    animation: plp-fadeIn 0.3s;
}

/* اطمینان از مخفی بودن فرم‌های موبایل */
.plp-mobile-form {
    display: none;
}
.plp-mobile-form.active {
    display: block;
}

/* Mobile Switch */
.plp-mobile-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.plp-switch-btn {
    flex: 1;
    padding: 10px;
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.3s;
}
.plp-switch-btn.active {
    background: #e8f0ff;
    border-color: #4a90e2;
    color: #4a90e2;
    font-weight: 600;
}

.plp-mobile-form {
    display: none;
}
.plp-mobile-form.active {
    display: block;
}

/* Fields */
.plp-field {
    margin-bottom: 12px;
}
.plp-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}
.plp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.plp-input-wrap input {
    width: 100%;
    padding: 12px 44px 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    box-sizing: border-box;
    background: #fff;
    direction: ltr;
    text-align: left;
}
.plp-input-wrap input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
}
.plp-input-icon {
    position: absolute;
    right: 14px;
    font-size: 16px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}
.plp-toggle-pass {
    position: absolute;
    left: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.plp-toggle-pass:hover {
    opacity: 1;
}

/* برای فیلد موبایل */
.plp-tel-wrap input {
    padding-left: 70px !important;
    direction: ltr;
    text-align: left;
}
.plp-tel-wrap .plp-tel-prefix {
    position: absolute;
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    direction: ltr;
    z-index: 1;
}

/* Captcha */
.plp-captcha-wrapper {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px dashed #d0d0d0;
    position: relative;
}
.plp-captcha-label {
    font-size: 13px !important;
    margin-bottom: 10px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.plp-captcha-equation {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    direction: ltr;
}
.plp-captcha-op {
    color: #e74c3c;
}
.plp-captcha-q {
    color: #4a90e2;
    font-size: 24px;
}
.plp-captcha-input {
    width: calc(100% - 50px) !important;
    padding: 10px !important;
    padding-right: 12px !important;
}
.plp-captcha-refresh {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s;
}
.plp-captcha-refresh:hover {
    transform: rotate(180deg);
}

/* Submit */
.plp-submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
    margin-top: 6px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.plp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}
.plp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Send OTP Button */
.plp-send-otp-btn {
    margin-top: 10px;
    padding: 10px 18px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.3s;
}
.plp-send-otp-btn:hover {
    background: #229954;
}
.plp-send-otp-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Back to Form Button */
.plp-back-to-form-btn {
    margin-top: 10px;
    padding: 10px 18px;
    background: #95a5a6;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.3s;
}
.plp-back-to-form-btn:hover {
    background: #7f8c8d;
}

/* OTP Input */
.plp-otp-input {
    text-align: center !important;
    font-size: 22px !important;
    letter-spacing: 8px !important;
    font-weight: 700 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}
.plp-otp-info {
    display: block;
    margin-top: 8px;
    color: #888;
    font-size: 12px;
}

/* Checkbox */
.plp-checkbox-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}
.plp-checkbox-field input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Messages */
.plp-form-message {
    padding: 0;
    margin: 15px 0 0;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s;
}
.plp-form-message.success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border: 1px solid #c3e6cb;
}
.plp-form-message.error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border: 1px solid #f5c6cb;
}

/* Links */
.plp-links {
    text-align: center;
    margin-top: 15px;
}
.plp-links a {
    color: #667eea;
    font-size: 13px;
    text-decoration: none;
}
.plp-links a:hover {
    text-decoration: underline;
}

/* Footer */
.plp-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.plp-secure {
    font-size: 11px;
    color: #888;
    margin: 0;
}

/* ============================================ */
/* ===== THEME: MINIMAL ===== */
/* ============================================ */
.plp-wrapper.plp-theme-minimal {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    padding: 20px 15px;
    min-height: 100vh;
}
.plp-wrapper.plp-theme-minimal .plp-login-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
.plp-theme-minimal .plp-title {
    color: #2c3e50;
}
.plp-theme-minimal .plp-submit-btn {
    background: #2c3e50;
    border-radius: 4px;
}
.plp-theme-minimal .plp-submit-btn:hover {
    background: #34495e;
    box-shadow: 0 4px 12px rgba(44,62,80,0.3);
}
.plp-theme-minimal .plp-tab.active {
    background: #f8f9fa;
    color: #2c3e50;
}
.plp-theme-minimal .plp-input-wrap input:focus {
    border-color: #2c3e50;
}

/* ============================================ */
/* ===== THEME: MAXIMAL ===== */
/* ============================================ */
.plp-wrapper.plp-theme-maximal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 15px;
    min-height: 100vh;
}
.plp-wrapper.plp-theme-maximal .plp-login-card {
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px 30px;
    border-radius: 24px;
    max-width: 400px;
}
.plp-theme-maximal .plp-title {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
}
.plp-theme-maximal .plp-submit-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 16px;
    font-size: 17px;
    border-radius: 14px;
}
.plp-theme-maximal .plp-submit-btn:hover {
    box-shadow: 0 12px 30px rgba(245, 87, 108, 0.5);
}
.plp-theme-maximal .plp-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}
.plp-theme-maximal .plp-logo-placeholder {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    font-size: 40px;
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
}

/* ============================================ */
/* ===== THEME: COLORISE ===== */
/* ============================================ */
.plp-wrapper.plp-theme-colorise {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #1dd1a1);
    background-size: 400% 400%;
    animation: plp-gradient 15s ease infinite;
    padding: 20px 15px;
    min-height: 100vh;
}
@keyframes plp-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.plp-wrapper.plp-theme-colorise .plp-login-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    max-width: 400px;
}
.plp-theme-colorise .plp-login-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.plp-theme-colorise .plp-submit-btn {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: #fff;
}
.plp-theme-colorise .plp-tab.active {
    background: linear-gradient(135deg, #48dbfb, #1dd1a1);
    color: #fff;
}
.plp-theme-colorise .plp-logo-placeholder {
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}
.plp-theme-colorise .plp-input-wrap input:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}
.plp-theme-colorise .plp-send-otp-btn {
    background: linear-gradient(135deg, #1dd1a1, #48dbfb);
}

/* ============================================ */
/* ===== THEME: GLASSMORPHISM ===== */
/* ============================================ */
.plp-wrapper.plp-theme-glassmorphism {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 15px;
    min-height: 100vh;
}
.plp-wrapper.plp-theme-glassmorphism .plp-login-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    color: #fff;
    max-width: 400px;
}
.plp-theme-glassmorphism .plp-login-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    color: #fff;
}
.plp-theme-glassmorphism .plp-title {
    color: #fff;
}
.plp-theme-glassmorphism .plp-field label {
    color: rgba(255,255,255,0.9);
}
.plp-theme-glassmorphism .plp-tabs {
    background: rgba(0,0,0,0.2);
}
.plp-theme-glassmorphism .plp-tab {
    color: rgba(255,255,255,0.8);
}
.plp-theme-glassmorphism .plp-tab.active {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.plp-theme-glassmorphism .plp-input-wrap input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
}
.plp-theme-glassmorphism .plp-input-wrap input::placeholder {
    color: rgba(255,255,255,0.6);
}
.plp-theme-glassmorphism .plp-input-wrap input:focus {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
}
.plp-theme-glassmorphism .plp-submit-btn {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}
.plp-theme-glassmorphism .plp-submit-btn:hover {
    background: rgba(255,255,255,0.3);
}
.plp-theme-glassmorphism .plp-captcha-wrapper {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
.plp-theme-glassmorphism .plp-captcha-equation {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.plp-theme-glassmorphism .plp-secure {
    color: rgba(255,255,255,0.7);
}
.plp-theme-glassmorphism .plp-links a {
    color: #fff;
}

/* ============================================ */
/* ===== THEME: DARK MODE ===== */
/* ============================================ */
.plp-wrapper.plp-theme-dark {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    padding: 20px 15px;
    min-height: 100vh;
}
.plp-wrapper.plp-theme-dark .plp-login-card {
    background: #1a1a2e;
    border: 1px solid #2d2d44;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-width: 400px;
}
.plp-theme-dark .plp-login-card {
    background: #1a1a2e;
    border: 1px solid #2d2d44;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.plp-theme-dark .plp-title {
    color: #e0e0e0;
}
.plp-theme-dark .plp-field label {
    color: #b0b0c0;
}
.plp-theme-dark .plp-tabs {
    background: #0f0f1e;
}
.plp-theme-dark .plp-tab {
    color: #888;
}
.plp-theme-dark .plp-tab.active {
    background: #2d2d44;
    color: #fff;
}
.plp-theme-dark .plp-input-wrap input {
    background: #0f0f1e;
    border-color: #2d2d44;
    color: #e0e0e0;
}
.plp-theme-dark .plp-input-wrap input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}
.plp-theme-dark .plp-captcha-wrapper {
    background: #0f0f1e;
    border-color: #2d2d44;
}
.plp-theme-dark .plp-captcha-equation {
    background: #1a1a2e;
    color: #e0e0e0;
}
.plp-theme-dark .plp-captcha-refresh {
    background: #2d2d44;
    border-color: #3d3d5c;
    color: #e0e0e0;
}
.plp-theme-dark .plp-submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.plp-theme-dark .plp-checkbox-field label {
    color: #b0b0c0;
}
.plp-theme-dark .plp-secure {
    color: #666;
}

/* ============================================ */
/* ===== THEME: NEUMORPHISM ===== */
/* ============================================ */
.plp-wrapper.plp-theme-neumorphism {
    background: #e0e5ec;
    padding: 20px 15px;
    min-height: 100vh;
}
.plp-wrapper.plp-theme-neumorphism .plp-login-card {
    background: #e0e5ec;
    border-radius: 24px;
    box-shadow: 9px 9px 18px #b8bcc4, -9px -9px 18px #ffffff;
    padding: 35px 30px;
    max-width: 400px;
}
.plp-theme-neumorphism .plp-login-card {
    background: #e0e5ec;
    border-radius: 24px;
    box-shadow: 9px 9px 18px #b8bcc4, -9px -9px 18px #ffffff;
    padding: 45px 35px;
}
.plp-theme-neumorphism .plp-title {
    color: #4a5568;
}
.plp-theme-neumorphism .plp-field label {
    color: #5a6578;
}
.plp-theme-neumorphism .plp-input-wrap input {
    background: #e0e5ec;
    border: none;
    border-radius: 12px;
    box-shadow: inset 5px 5px 10px #b8bcc4, inset -5px -5px 10px #ffffff;
}
.plp-theme-neumorphism .plp-input-wrap input:focus {
    box-shadow: inset 3px 3px 6px #b8bcc4, inset -3px -3px 6px #ffffff;
}
.plp-theme-neumorphism .plp-tabs {
    background: #e0e5ec;
    border-radius: 14px;
    box-shadow: 5px 5px 10px #b8bcc4, -5px -5px 10px #ffffff;
}
.plp-theme-neumorphism .plp-tab.active {
    background: #e0e5ec;
    box-shadow: inset 4px 4px 8px #b8bcc4, inset -4px -4px 8px #ffffff;
    color: #4a5568;
}
.plp-theme-neumorphism .plp-submit-btn {
    background: #e0e5ec;
    color: #4a5568;
    border: none;
    box-shadow: 5px 5px 10px #b8bcc4, -5px -5px 10px #ffffff;
}
.plp-theme-neumorphism .plp-submit-btn:hover {
    box-shadow: inset 3px 3px 6px #b8bcc4, inset -3px -3px 6px #ffffff;
}
.plp-theme-neumorphism .plp-captcha-wrapper {
    background: #e0e5ec;
    border: none;
    border-radius: 12px;
    box-shadow: inset 4px 4px 8px #b8bcc4, inset -4px -4px 8px #ffffff;
}
.plp-theme-neumorphism .plp-captcha-equation {
    background: #e0e5ec;
    box-shadow: inset 3px 3px 6px #b8bcc4, inset -3px -3px 6px #ffffff;
}
.plp-theme-neumorphism .plp-send-otp-btn {
    background: #e0e5ec;
    color: #4a5568;
    box-shadow: 4px 4px 8px #b8bcc4, -4px -4px 8px #ffffff;
}
.plp-theme-neumorphism .plp-logo-placeholder {
    background: #e0e5ec;
    color: #4a5568;
    box-shadow: 5px 5px 10px #b8bcc4, -5px -5px 10px #ffffff;
}

/* ============================================ */
/* ===== RESPONSIVE ===== */
/* ============================================ */
/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .plp-wrapper {
        padding: 15px 12px !important;
        min-height: 100vh !important;
    }
    .plp-login-card {
        padding: 30px 22px;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
    }
    .plp-title {
        font-size: 18px;
    }
    .plp-subtitle {
        font-size: 12px;
    }
    .plp-tab {
        font-size: 12px;
        padding: 8px 4px;
    }
    .plp-tab-icon {
        display: none;
    }
    .plp-field {
        margin-bottom: 10px;
    }
    .plp-input-wrap input {
        padding: 10px 36px 10px 12px;
        font-size: 14px;
    }
    .plp-submit-btn {
        padding: 12px;
        font-size: 15px;
    }
    .plp-captcha-equation {
        font-size: 16px;
        padding: 8px 10px;
    }
    .plp-captcha-input {
        padding: 8px !important;
    }
    .plp-footer {
        margin-top: 10px;
        padding-top: 8px;
    }
    .plp-logo-placeholder {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .plp-logo {
        margin-bottom: 10px;
    }
}

/* ============================================================ */
/* ===== ADDITIONAL STYLES - MISSING FROM v2 ===== */
/* ============================================================ */

/* Logo Shine Effect */
.plp-logo-placeholder {
    position: relative;
    overflow: hidden;
}
.plp-logo-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: plp-shine 3s infinite;
}
@keyframes plp-shine {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}

/* Spinner Animation */
.plp-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: plp-spin 0.7s linear infinite;
}
@keyframes plp-spin {
    to { transform: rotate(360deg); }
}

/* Shake Animation */
@keyframes plp-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}
.plp-shake {
    animation: plp-shake 0.5s ease-in-out;
}

/* Input Shake */
@keyframes plp-input-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}
.plp-input-shake {
    animation: plp-input-shake 0.3s ease-in-out;
    border-color: #e74c3c !important;
}

/* Button Pulse */
@keyframes plp-btn-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}
.plp-btn-pulse {
    animation: plp-btn-pulse 0.3s ease;
}

/* Confetti Fall Animation */
@keyframes plp-confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Slider Captcha Styles */
.plp-slider-track {
    position: relative;
    height: 50px; /* بزرگتر برای touch */
    background: linear-gradient(to right, #e0e0e0, #d0d0d0);
    border-radius: 25px;
    overflow: hidden;
    user-select: none;
    margin: 10px 0;
    touch-action: none; /* جلوگیری از scroll هنگام drag */
}
.plp-slider-target {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px; /* بزرگتر برای visibility بهتر */
    height: 20px;
    background: #e74c3c;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
    z-index: 1;
    animation: plp-target-pulse 1.5s ease-in-out infinite;
}
@keyframes plp-target-pulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}
.plp-slider-thumb {
    position: absolute;
    top: 5px;
    left: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px; /* بزرگتر */
    cursor: grab;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.1s;
    letter-spacing: -2px;
    touch-action: none;
}
.plp-slider-thumb:hover {
    transform: scale(1.05);
}
.plp-slider-thumb.dragging {
    cursor: grabbing;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Mobile-specific slider improvements */
@media (max-width: 768px) {
    .plp-slider-track {
        height: 60px;
    }
    .plp-slider-thumb {
        width: 50px;
        height: 50px;
        top: 5px;
        font-size: 20px;
    }
    .plp-slider-target {
        width: 24px;
        height: 24px;
    }
}

/* Polling Status */
.plp-sms-reply-info {
    margin-top: 12px;
    padding: 12px;
    background: #e8f4f8;
    border-right: 3px solid #3498db;
    border-radius: 6px;
    font-size: 13px;
}
.plp-info-text {
    margin: 0 0 8px;
    color: #2c3e50;
}
.plp-reply-number {
    color: #e74c3c;
    font-family: 'Courier New', monospace;
    direction: ltr;
    display: inline-block;
}
.plp-polling-status {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s;
}
.plp-polling-status.active {
    opacity: 1;
}
.plp-polling-dot {
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    animation: plp-polling-pulse 1.5s ease-in-out infinite;
}
@keyframes plp-polling-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}
.plp-polling-text {
    font-size: 12px;
    color: #27ae60;
    font-weight: 600;
}

/* 2FA Field */
.plp-2fa-field {
    margin-top: 15px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border: 1px dashed #667eea;
    border-radius: 8px;
    animation: plp-fadeIn 0.3s;
}
.plp-2fa-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}
.plp-2fa-input {
    width: 100%;
    padding: 12px !important;
    font-size: 20px !important;
    text-align: center;
    letter-spacing: 6px;
    font-weight: 700;
    border: 2px solid #667eea !important;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 10px;
}
.plp-submit-2fa {
    width: 100%;
}

/* Sandbox Code Display */
.plp-sandbox-code {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 12px;
}

/* Captcha Refresh Rotation */
.plp-captcha-refresh.rotating {
    animation: plp-rotate-360 0.5s ease;
}
@keyframes plp-rotate-360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Captcha Text Display */
.plp-captcha-text-display {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

/* Captcha Question */
.plp-captcha-question {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    border: 1px solid #e0e0e0;
    line-height: 1.6;
}

/* Subtitle */
.plp-subtitle {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin: -15px 0 25px;
    font-weight: 400;
}

/* Tab Icons */
.plp-tab-icon {
    display: inline-block;
    margin-left: 6px;
    font-size: 16px;
    vertical-align: middle;
}
.plp-tab-label {
    vertical-align: middle;
}

/* Eye Icons for Password Toggle */
.plp-toggle-pass svg {
    display: block;
}
.plp-eye-open, .plp-eye-closed {
    width: 20px;
    height: 20px;
    fill: #888;
    transition: fill 0.2s;
}
.plp-toggle-pass:hover .plp-eye-open,
.plp-toggle-pass:hover .plp-eye-closed {
    fill: #4a90e2;
}

/* Telephone Prefix */
.plp-tel-wrap {
    position: relative;
}
.plp-tel-prefix {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    direction: ltr;
}
.plp-tel-wrap input {
    padding-left: 70px !important;
    direction: ltr;
    text-align: left;
}

/* Custom Checkbox */
.plp-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.plp-checkbox input {
    display: none;
}
.plp-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}
.plp-checkbox input:checked + .plp-checkbox-custom {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}
.plp-checkbox input:checked + .plp-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.plp-checkbox-label {
    font-size: 13px;
    color: #666;
}
.plp-checkbox-label small {
    color: #aaa;
    font-size: 11px;
    margin-right: 4px;
}

/* Footer Styles */
.plp-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #888;
    font-size: 12px;
    margin-bottom: 8px;
}
.plp-secure-badge svg {
    fill: #27ae60;
}
.plp-powered-by {
    text-align: center;
    font-size: 11px;
    color: #bbb;
    margin: 8px 0 0;
}
.plp-powered-by strong {
    color: #999;
}

/* Form Message Types */
.plp-form-message.info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 12px;
    border: 1px solid #bee5eb;
    border-radius: 8px;
}
.plp-form-message.success,
.plp-form-message.error,
.plp-form-message.info {
    word-wrap: break-word;
    animation: plp-fadeIn 0.3s;
}

/* Forgot Password Link */
.plp-link-forgot {
    color: #667eea !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
.plp-link-forgot:hover {
    color: #764ba2 !important;
    text-decoration: underline !important;
}

/* Background Effects for Themes */
.plp-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.plp-login-card {
    position: relative;
    z-index: 1;
}

/* ==================== دکمه بازگشت ==================== */
.plp-back-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    color: #2c3e50;
    font-family: 'Vazirmatn', 'IRANSans', 'Yekan Bakh', 'Vazir', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    direction: rtl;
}
.plp-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background: #ffffff;
}
.plp-back-btn:active {
    transform: translateY(0);
}
.plp-back-btn svg {
    flex-shrink: 0;
}
.plp-back-btn span {
    line-height: 1;
}

/* استایل دکمه بازگشت در تم‌های تیره */
.plp-theme-dark .plp-back-btn,
.plp-theme-glassmorphism .plp-back-btn {
    background: rgba(30, 30, 46, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.plp-theme-dark .plp-back-btn:hover,
.plp-theme-glassmorphism .plp-back-btn:hover {
    background: rgba(40, 40, 60, 0.95);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* استایل دکمه بازگشت در تم‌های رنگی */
.plp-theme-maximal .plp-back-btn,
.plp-theme-colorise .plp-back-btn {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.plp-theme-maximal .plp-back-btn:hover,
.plp-theme-colorise .plp-back-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

/* استایل دکمه بازگشت در تم نیومورفیسم */
.plp-theme-neumorphism .plp-back-btn {
    background: #e0e5ec;
    border: none;
    color: #4a5568;
    box-shadow: 5px 5px 10px #b8bcc4, -5px -5px 10px #ffffff;
}
.plp-theme-neumorphism .plp-back-btn:hover {
    box-shadow: 7px 7px 14px #b8bcc4, -7px -7px 14px #ffffff;
    color: #2d3748;
}

@media (max-width: 480px) {
    .plp-back-btn {
        top: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
        gap: 6px;
    }
    .plp-back-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Already Logged In */
.plp-already-logged-in {
    text-align: center;
    padding: 20px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
}

/* Theme-specific adjustments for new elements */
.plp-theme-dark .plp-slider-track {
    background: linear-gradient(to right, #2d2d44, #1a1a2e);
}
.plp-theme-dark .plp-captcha-question,
.plp-theme-dark .plp-captcha-text-display {
    background: #0f0f1e;
    border-color: #2d2d44;
    color: #e0e0e0;
}
.plp-theme-dark .plp-sms-reply-info {
    background: rgba(52, 152, 219, 0.1);
    color: #e0e0e0;
}
.plp-theme-dark .plp-2fa-field {
    background: rgba(102, 126, 234, 0.1);
}
.plp-theme-dark .plp-2fa-input {
    background: #0f0f1e !important;
    color: #e0e0e0 !important;
}
.plp-theme-dark .plp-subtitle {
    color: #888;
}

.plp-theme-glassmorphism .plp-slider-track {
    background: rgba(255,255,255,0.1);
}
.plp-theme-glassmorphism .plp-captcha-question,
.plp-theme-glassmorphism .plp-captcha-text-display {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
.plp-theme-glassmorphism .plp-sms-reply-info {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.3);
    color: #fff;
}
.plp-theme-glassmorphism .plp-2fa-input {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.3) !important;
}

.plp-theme-neumorphism .plp-slider-track {
    background: #e0e5ec;
    box-shadow: inset 3px 3px 6px #b8bcc4, inset -3px -3px 6px #fff;
}
.plp-theme-neumorphism .plp-captcha-question,
.plp-theme-neumorphism .plp-captcha-text-display {
    background: #e0e5ec;
    box-shadow: inset 3px 3px 6px #b8bcc4, inset -3px -3px 6px #fff;
    border: none;
}