.page {
    box-sizing: border-box;
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
    color: #171719;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page *,
.page *::before,
.page *::after {
    box-sizing: border-box;
}

.card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background: #fff;
    border: 1px solid #e8e8eb;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    background: #63c;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.button:hover {
    background: #592bb5;
}

.form-title {
    margin: 0 0 19px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.form-field {
    margin-bottom: 3px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 550;
    color: #333338;
}

.form-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d9d9de;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #171719;
    font-size: 15px;
    transition: border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-input::placeholder {
    color: #a1a1a8;
}

.form-input:focus {
    border-color: #63c;
    box-shadow: 0 0 0 3px rgba(102, 51, 204, 0.12);
}

.form-input--invalid {
    border-color: #dc3545;
}

.form-error {
    min-height: 18px;
    margin-top: 6px;
    color: #dc3545;
    font-size: 13px;
}

.form-submit {
    margin-top: 6px;
    border: 0;
}

@media (max-width: 480px) {
    .card {
        padding: 30px 24px;
        border-radius: 16px;
    }

    .form-title {
        font-size: 23px;
    }
}
