/**
 * Login SMS Plugin Styles
 */

.login-sms-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}

.login-sms-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.login-sms-tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.login-sms-tab-btn:hover {
    color: #333;
}

.login-sms-tab-btn.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.login-sms-tab-content {
    display: none;
}

.login-sms-tab-content.active {
    display: block;
}

.login-sms-form h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    text-align: center;
}

.login-sms-field {
    margin-bottom: 20px;
}

.login-sms-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.login-sms-field input[type="text"],
.login-sms-field input[type="tel"],
.login-sms-field input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.login-sms-field input:focus {
    outline: none;
    border-color: #0073aa;
}

.login-sms-btn {
    width: 100%;
    padding: 14px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.login-sms-btn:hover {
    background: #005a87;
}

.login-sms-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.login-sms-btn-link {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #0073aa;
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 10px;
}

.login-sms-btn-link:hover {
    color: #005a87;
}

.login-sms-checkbox {
    display: flex;
    align-items: center;
    margin: 15px 0;
    cursor: pointer;
}

.login-sms-checkbox input[type="checkbox"] {
    margin-left: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.login-sms-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.login-sms-message.show {
    display: block;
}

.login-sms-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.login-sms-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.login-sms-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.login-sms-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-sms-already-logged-in {
    text-align: center;
    padding: 20px;
    background: #f0f0f0;
    border-radius: 8px;
}

.login-sms-logout-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #dc3545;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.login-sms-logout-btn:hover {
    background: #c82333;
}

/* WooCommerce Integration */
.woocommerce-checkout-login-sms,
.woocommerce-account-login-sms {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.woocommerce-checkout-login-sms h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .login-sms-container {
        margin: 10px;
        padding: 20px;
    }
    
    .login-sms-tab-btn {
        font-size: 14px;
        padding: 10px 15px;
    }
}

/* Loading spinner */
.login-sms-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

