#telegram-login-container {
    max-width: 450px;
    margin: 20px auto;
    padding: 30px;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-step {
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-step h3 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.code-display {
    font-size: 36px;
    font-weight: bold;
    color: #0088cc;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    letter-spacing: 4px;
    border: 2px solid #0088cc;
    position: relative;
    overflow: hidden;
}

.code-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.login-options {
    text-align: left;
    margin: 20px 0;
}

.option {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #0088cc;
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #0066aa 0%, #004488 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    text-decoration: none;
    color: white;
}

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

.telegram-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px 5px;
}

.telegram-btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    text-decoration: none;
    color: #495057;
}

.countdown {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 600;
    border: 1px solid #ffeaa7;
}

.success-animation {
    font-size: 64px;
    animation: bounce 1s ease-in-out;
    margin: 20px 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.telegram-login-success {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 12px;
    color: #155724;
}

.telegram-login-success h3 {
    color: #155724;
    margin-bottom: 15px;
}

#login-error {
    color: #721c24;
}

#login-error h3 {
    color: #721c24;
}

#error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #f5c6cb;
}

/* 响应式设计 */
@media (max-width: 480px) {
    #telegram-login-container {
        margin: 10px;
        padding: 20px;
    }

    .code-display {
        font-size: 28px;
        letter-spacing: 2px;
        padding: 15px;
    }

    .login-step h3 {
        font-size: 20px;
    }

    .telegram-btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
}

/* 加载动画 */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0088cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

