/* استایل اصلی پلاگین احراز هویت SMS.ir */
.smsir-auth-container {
    max-width: 400px;
    margin: 40px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.smsir-auth-form {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    direction: rtl;
}

.smsir-auth-form h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
    font-size: 22px;
}

.smsir-auth-form .step {
    display: none;
}

.smsir-auth-form .step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
}

.smsir-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
    text-align: center;
}

.smsir-btn-primary {
    background-color: #4a6cf7;
    color: white;
}

.smsir-btn-primary:hover {
    background-color: #3a5ce5;
}

.smsir-btn-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.smsir-btn-secondary:hover {
    background-color: #e9ecef;
}

.smsir-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.smsir-btn-link {
    background: none;
    border: none;
    color: #4a6cf7;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 0;
}

.smsir-btn-link:hover {
    color: #3a5ce5;
}

.smsir-btn-link:disabled {
    color: #999;
    cursor: not-allowed;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

.otp-sent-message {
    background-color: #f8f9fa;
    border-right: 4px solid #4a6cf7;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #333;
}

.otp-resend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    font-size: 14px;
}

#login-resend-timer,
#register-resend-timer {
    font-family: monospace;
    color: #4a6cf7;
    font-weight: bold;
}

.success-message {
    text-align: center;
    padding: 30px 0;
}

.success-icon {
    width: 70px;
    height: 70px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

.success-message h4 {
    color: #28a745;
    margin-bottom: 10px;
}

.success-message p {
    color: #666;
}

.form-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
}

.form-footer a {
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

.smsir-alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.smsir-alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .smsir-auth-form {
        padding: 20px;
    }
    
    .smsir-auth-container {
        margin: 20px auto;
    }
}