* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    font-family:
            Inter,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            sans-serif;

    background: #f4f6f8;
    color: #17202a;
}

.page {
    width: 100%;
    max-width: 520px;
}

.form-card {
    background: #ffffff;

    border-radius: 16px;

    padding: 40px;

    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.08);
}

.form-card__header {
    margin-bottom: 30px;
}

.form-card__label {
    display: inline-block;

    margin-bottom: 12px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;

    color: #6b7280;
}

.form-card h1 {
    margin: 0 0 10px;

    font-size: 32px;
    line-height: 1.2;
}

.form-card p {
    margin: 0;

    color: #6b7280;

    line-height: 1.6;
}

.form {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.form__field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.form__field label {
    font-size: 14px;
    font-weight: 600;
}

.form__field input {
    width: 100%;

    height: 52px;

    padding: 0 16px;

    border: 1px solid #d9dee5;
    border-radius: 10px;

    outline: none;

    font-size: 16px;

    transition:
            border-color 0.2s,
            box-shadow 0.2s;
}

.form__field input:focus {
    border-color: #111827;

    box-shadow:
            0 0 0 3px rgba(17, 24, 39, 0.08);
}

.form__submit {
    height: 54px;

    border: 0;
    border-radius: 10px;

    background: #111827;
    color: #ffffff;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
            opacity 0.2s,
            transform 0.2s;
}

.form__submit:hover {
    opacity: 0.9;
}

.form__submit:active {
    transform: translateY(1px);
}

.form__error {
    font-size: 13px;
    color: #dc2626;
}

.message {
    margin-bottom: 20px;

    padding: 14px 16px;

    border-radius: 10px;

    font-size: 14px;
    line-height: 1.5;
}

.message--success {
    background: #ecfdf3;
    color: #166534;
}

.message--error {
    background: #fef2f2;
    color: #991b1b;
}

/*
 * Honeypot must be invisible to normal users
 * but still available to bots.
 */
.form__honeypot {
    position: absolute;

    left: -9999px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}

@media (max-width: 600px) {

    body {
        padding: 15px;
    }

    .form-card {
        padding: 28px 22px;
    }

    .form-card h1 {
        font-size: 28px;
    }
}