.auth-page {
    display: grid;
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 0;
    box-sizing: border-box;
}

.auth-page .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
}

.auth-page .breadcrumbs-wrapper {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    justify-self: start;
    align-self: start;
}

.auth-page__inner {
    width: 780px;
    max-width: 100%;
    margin: 0 auto;
    align-self: center;
    padding: 50px 115px;
    box-sizing: border-box;
    border-radius: 12px;
    background: var(--white);
}

.auth-page--registration .auth-page__inner {
    width: 780px;
}

.auth-page__title {
    margin: 0 0 25px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 22px;
    line-height: 120%;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--black);
}

.auth-form__field + .auth-form__field {
    margin-top: 20px;
}

.auth-form__field label {
    display: block;
    margin-bottom: 15px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: -0.02em;
    color: var(--black);
}

.auth-form__required {
    color: var(--red);
}

.auth-form__field input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 15px 20px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    background: var(--input);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: -0.02em;
    color: var(--black);
}

.auth-form__field input::placeholder {
    color: var(--grey);
    opacity: 1;
}

.auth-form__field input:focus {
    border-color: var(--red);
}

.auth-form__hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-form__error {
    margin-top: 6px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 129%;
    letter-spacing: -0.02em;
    color: var(--red);
}

.auth-form__message {
    margin-top: 20px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 129%;
    letter-spacing: -0.02em;
    color: var(--red);
}

.auth-form__message:empty {
    display: none;
}

.auth-form__message--error {
    color: var(--red);
}

.auth-form__message--success {
    color: #2e7d32;
}

.auth-form .is-error {
    border-color: var(--red);
}

.auth-form .is-error::placeholder {
    color: var(--red);
    opacity: 1;
}

.auth-form__checkbox {
    margin-top: 15px;
}

.auth-form__checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 12px;
    line-height: 129%;
    letter-spacing: -0.02em;
    color: var(--black);
}

.auth-form__checkbox input {
    flex: 0 0 auto;
    margin: 2px 0 0;
}

.auth-form__legal-link {
    color: var(--red);
    text-decoration: underline;
    text-decoration-skip-ink: none;
}

.auth-form__legal-link:hover {
    color: var(--black);
}

.auth-form__submit {
    display: block;
    margin: 25px auto 0;
}

.auth-form__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.auth-form__footer a {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: -0.02em;
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: var(--grey);
}

@media screen and (max-width: 1023px) {
    .auth-page__inner {
        padding: 30px 80px;
    }

    .auth-page__title {
        font-size: 20px;
    }

    .auth-form__footer a {
        font-size: 16px;
    }
}

@media screen and (max-width: 767px) {
    .auth-page .container {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }

    .auth-page__inner {
        padding: 20px;
    }

    .auth-page__title {
        margin-bottom: 18px;
        font-size: 16px;
    }

    .auth-form__field + .auth-form__field {
        margin-top: 15px;
    }

    .auth-form__field label {
        font-size: 14px;
        margin-bottom: 13px;
    }

    .auth-form__submit.redBtn {
        width: 100% !important;
        max-width: 303px;
        font-size: 14px;
    }

    .auth-form__footer a {
        font-size: 14px;
    }

    .auth-form__field input {
        font-size: 12px;
        padding: 13px 10px;

    }
}
