header , footer{
    display: none;
}
body{
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
/* استایل فرم OTP */
.otp-login-container {
    max-width: 470px;
    /*margin: 40px auto;*/
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
    /*font-family: IRANYekanXFaNum,-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;*/
}

.otp-header {
    margin-bottom: 30px;
    text-align: center;
}

.otp-header h2 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.otp-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.otp-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 36px;
    /*box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);*/
}

.otp-icon i {
    line-height: 1;
}

.otp-login-container label {
    display: block;
    text-align: right;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 15px;
    margin-top: 20px;
}

.otp-login-container .input-text {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 18px;
    transition: all 0.3s ease;
    direction: ltr;
    text-align: center;
    box-sizing: border-box;
    color: #333;
    background: #f8f9fa;
}

.otp-login-container .input-text:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #fff;
}

.otp-login-container .input-text::placeholder {
    color: #aaa;
    font-size: 16px;
}

/* دکمه‌ها */
.otp-login-container .button {
    width: 100%;
    padding: 18px 20px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.otp-login-container .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.otp-login-container .button-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.otp-login-container .button-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.otp-login-container .button-secondary {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0;
    margin-top: 15px;
}

.otp-login-container .button-secondary:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
}

/* پیام‌ها */
.otp-message {
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 25px;
    font-size: 15px;
    display: none;
    text-align: center;
    animation: slideDown 0.3s ease;
    line-height: 1.5;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.otp-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.otp-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* تایمر */
#otp-timer {
    text-align: center;
    padding: 15px;
    background: #fff8e1;
    border: 2px solid #ffd54f;
    border-radius: 10px;
    color: #5d4037;
    font-size: 15px;
    margin-top: 20px;
    display: none;
}

#timer-countdown {
    font-weight: 700;
    color: #d84315;
    font-size: 18px;
}

/* مرحله 2 */
#otp-step-2 {
    position: relative;
}

.mobile-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin: 25px auto;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 90%;
}

.mobile-display i {
    font-size: 20px;
}

#sent-mobile {
    direction: ltr;
    letter-spacing: 1px;
}

/* فیلد کد OTP */
#otp_code {
    letter-spacing: 15px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    padding: 18px 10px;
    background: #f5f5f5;
    color: #333;
}

/* انیمیشن‌ها */
.otp-step-1, .otp-step-2 {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* فاصله‌ها */
.otp-form-group {
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 480px) {
    .otp-login-container {
        padding: 30px 20px;
        margin: 20px 15px;
        border-radius: 12px;
    }

    .otp-header h2 {
        font-size: 24px;
    }

    .otp-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .otp-login-container .input-text {
        font-size: 16px;
        padding: 14px 16px;
    }

    .otp-login-container .button {
        font-size: 16px;
        padding: 16px;
    }

    #otp_code {
        letter-spacing: 10px;
        font-size: 24px;
        padding: 16px 8px;
    }

    .mobile-display {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* Loading Spinner */
.button-loading {
    position: relative;
    color: transparent !important;
}

.button-loading::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* بهبود دسترسی */
.otp-login-container .input-text:focus,
.otp-login-container .button:focus {
    outline: 3px solid rgba(102, 126, 234, 0.3);
    outline-offset: 2px;
}

/* حالت RTL */
[dir="rtl"] .otp-login-container .input-text,
[dir="rtl"] #sent-mobile {
    direction: ltr;
    text-align: center;
}

/* جلوگیری از انتخاب متن */
#otp-timer, .mobile-display {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* لینک‌ها */
.otp-help-links {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.otp-help-links a {
    color: #667eea;
    text-decoration: none;
    margin: 0 10px;
}

.otp-help-links a:hover {
    text-decoration: underline;
    color: #764ba2;
}

/* شمارنده کد */
.otp-input-info {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: 10px;
    direction: rtl;
}

.otp-input-info .count {
    font-weight: bold;
    color: #667eea;
}

/* پاورقی */
.otp-footer {
    margin-top: 30px;
    font-size: 13px;
    color: #888;
    text-align: center;
    line-height: 1.6;
}