*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    padding: 1.5rem;
}

.card {
    max-width: 480px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: box-shadow 0.25s ease;
}

.card:hover {
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.12);
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #2787f5;
    border-radius: 16px;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.card h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.35rem;
}

.card .subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

#vk-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 64px;
    margin: 0.5rem 0 1.5rem;
}

.status {
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    display: none;
}

.status.show {
    display: block;
}

.status.success {
    background: #e6f7e6;
    color: #1a7a3a;
    border: 1px solid #b8e0b8;
}

.status.error {
    background: #fde8e8;
    color: #b91c1c;
    border: 1px solid #f5c6c6;
}

.status.loading {
    background: #e8f0fe;
    color: #1a56a7;
    border: 1px solid #b8cfe0;
    display: block;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid #d1d5db;
    border-top-color: #2787f5;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.card .footer-note {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef2f6;
    font-size: 0.8rem;
    color: #9ca3af;
}

.card .footer-note a {
    color: #2787f5;
    text-decoration: none;
}

.card .footer-note a:hover {
    text-decoration: underline;
}

@media (max-width: 500px) {
    .card {
        padding: 1.75rem 1.25rem;
    }

    .card h1 {
        font-size: 1.25rem;
    }

    .logo {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
}
