/* Стили для Telegram авторизации */
.telegram-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    margin: 5px;
    background: linear-gradient(135deg, #0088cc, #00a8ff);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 120px;
}

.telegram-auth-btn:hover {
    background: linear-gradient(135deg, #0077b3, #0099e6);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.telegram-auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 136, 204, 0.3);
}

.telegram-auth-btn i {
    margin-right: 8px;
    font-size: 16px;
}

/* Анимация загрузки для Telegram */
.telegram-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Стили для результата Telegram авторизации */
#result_telegram {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

#result_telegram .text-success {
    color: #28a745;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

#result_telegram .text-danger {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

#result_telegram .text-info {
    color: #17a2b8;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .telegram-auth-btn {
        min-width: 100px;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .telegram-auth-btn i {
        font-size: 14px;
        margin-right: 6px;
    }
}

/* Темная тема */
body.darkStyle .telegram-auth-btn {
    background: linear-gradient(135deg, #0088cc, #00a8ff);
    color: white;
}

body.darkStyle .telegram-auth-btn:hover {
    background: linear-gradient(135deg, #0077b3, #0099e6);
    color: white;
}

/* Стили для модального окна Telegram */
.telegram-modal {
    background: linear-gradient(135deg, #0088cc, #00a8ff);
    color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.telegram-modal h4 {
    color: white;
    margin-bottom: 15px;
}

.telegram-modal p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.telegram-modal .btn {
    background: white;
    color: #0088cc;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.telegram-modal .btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
} 