* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
}

.logo {
    text-align: center;
    color: white;
    margin-bottom: 24px;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo .subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 4px;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.card h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.card .desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

#telegram-login-button {
    display: flex;
    justify-content: center;
}

.status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.hidden {
    display: none !important;
}

.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

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

.footer {
    text-align: center;
    margin-top: 16px;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}