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

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

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

.logo h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--tg-theme-text-color, #000);
}

.content {
    background: var(--tg-theme-secondary-bg-color, #f4f4f4);
    padding: 20px;
    border-radius: 12px;
}

.content p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.content a {
    color: var(--tg-theme-link-color, #2481cc);
    text-decoration: none;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    cursor: pointer;
}

.checkbox-container input {
    margin-right: 10px;
    margin-top: 3px;
}

.checkbox-container span {
    font-size: 14px;
    line-height: 1.4;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: var(--tg-theme-button-color, #2481cc);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--tg-theme-button-color, #2481cc);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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