:root {
    --primary-color: #6366f1;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --text-muted: #64748b;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 48px;
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.hidden { display: none !important; }

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.logo {
    margin-bottom: 24px;
}

.logo img {
    max-height: 64px;
    max-width: 200px;
}

.icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.success-icon { color: var(--success-color); }
.error-icon { color: var(--error-color); }

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
}

.btn {
    margin-top: 24px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

footer {
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 14px;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}
