*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5faf5;
    font-family: 'Roboto', sans-serif;
    padding: 20px;
    color: #1a1a1a;
    transition: background 0.3s, color 0.3s;
}

.card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px 32px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: background 0.3s, box-shadow 0.3s;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e8f5e9;
    margin-bottom: 20px;
    transition: background 0.3s;
}

h1 {
    font-size: 18px;
    font-weight: 500;
    color: #111;
    margin-bottom: 8px;
    transition: color 0.3s;
}

p {
    font-size: 14px;
    color: #757575;
    line-height: 1.6;
    margin-bottom: 28px;
    transition: color 0.3s;
}

.divider {
    height: 1px;
    background: #f0f0f0;
    margin-bottom: 24px;
    transition: background 0.3s;
}

.recaptcha-wrap {
    display: flex;
    justify-content: center;
    min-height: 78px;
    margin-bottom: 16px;
}

.status {
    font-size: 13px;
    color: #9e9e9e;
    min-height: 18px;
}

.status.success {
    color: #388e3c;
}

.status.error {
    color: #d32f2f;
}

.footer {
    margin-top: 24px;
    font-size: 12px;
    color: #bdbdbd;
}

@media (max-width: 420px) {
    .card {
        padding: 32px 20px 24px;
    }
}

/* --- ТЕМНАЯ ТЕМА --- */
@media (prefers-color-scheme: dark) {
    body {
        background: #121212;
        color: #e0e0e0;
    }

    .card {
        background: #1e1e1e;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .icon {
        background: #1b2e1c;
    }

    h1 {
        color: #ffffff;
    }

    p {
        color: #aaaaaa;
    }

    .divider {
        background: #333333;
    }

    .status {
        color: #757575;
    }

    .status.success {
        color: #81c784;
    }

    .status.error {
        color: #e57373;
    }
}