* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f8fafc;
    color: #1e293b;
}

.page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.card {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.intro {
    margin: 0 0 20px;
    color: #475569;
}

.field {
    margin-bottom: 18px;
}

label {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: 2px solid #bfdbfe;
    border-color: #60a5fa;
}

button {
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    background: #2563eb;
    color: #fff;
}

button:hover {
    background: #1d4ed8;
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
}

.success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.field-error {
    display: block;
    margin-top: 8px;
    color: #b91c1c;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.captcha-image {
    display: block;
    width: 180px;
    height: 56px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.refresh-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.refresh-link:hover {
    text-decoration: underline;
    background: transparent;
}

.refresh-link:focus-visible {
    outline: 2px solid #bfdbfe;
    outline-offset: 3px;
    background: transparent;
}
