.auth {
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 194px);
    padding: 70px 20px 110px;
    background: linear-gradient(180deg, #0088d3 0%, #3ea4dd 22%, #78bfe6 42%, #cfe8f6 62%, rgba(255, 255, 255, 0) 80%);
}

.auth__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(480px, 100%);
    height: fit-content;
    padding: 40px 44px 34px;
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow-drop);
}

.auth__card--wide {
    width: min(560px, 100%);
}

.auth__logo {
    align-self: center;
    width: 205px;
}

.auth__title {
    margin-top: 28px;
    font-size: 40px;
    font-weight: 500;
    line-height: 48px;
}

.auth__lead {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 300;
    line-height: 23px;
}

.auth__lead strong {
    font-weight: 500;
}

.auth__form {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.auth__summary ul {
    margin: 16px 0 0;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--tag-no);
    list-style: none;
    background: #fdeef2;
    border-radius: 8px;
}

.auth__summary.validation-summary-valid {
    display: none;
}

.auth__pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.auth__field {
    display: flex;
    flex-direction: column;
}

.auth__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.auth__label {
    margin-top: 20px;
    font-size: 13px;
    font-weight: 400;
}

.auth__input {
    height: 40px;
    margin-top: 4px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--ink);
    background: var(--faq-surface);
    border: 1px solid transparent;
    border-radius: 4px;
    outline: none;
}

.auth__input::placeholder {
    font-size: 12px;
    color: #8d8d8d;
}

.auth__input:focus-visible {
    border-color: var(--brand);
}

.auth__input.input-validation-error {
    border-color: var(--tag-no);
}

.auth__error {
    margin-top: 4px;
    font-size: 13px;
    color: var(--tag-no);
}

.auth__error:empty {
    display: none;
}

.auth__check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 300;
    cursor: pointer;
}

.auth__check input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.auth__submit {
    margin-top: 28px;
}

.auth__switch {
    margin-top: 24px;
    font-size: 15px;
    font-weight: 300;
    text-align: center;
}

.auth__link {
    font-weight: 500;
    color: var(--brand);
}

.auth__link--small {
    font-size: 13px;
    font-weight: 400;
}

@media (max-width: 600px) {
    .auth {
        padding: 32px 16px 60px;
    }

    .auth__card {
        padding: 28px 20px;
    }

    .auth__title {
        font-size: 32px;
        line-height: 38px;
    }

    .auth__pair {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
}

.auth__alert {
    margin-top: 16px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 19px;
    border-radius: 8px;
}

.auth__alert--error {
    color: var(--tag-no);
    background: #fdeef2;
}

.auth__alert--ok {
    color: #1c6b34;
    background: #eaf7ee;
}

.auth__linkbutton {
    margin-top: 8px;
    padding: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--brand);
    background: none;
    border: 0;
    cursor: pointer;
}

.auth__or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 0;
    font-size: 13px;
    color: var(--muted-label);
}

.auth__or::before,
.auth__or::after {
    flex: 1;
    height: 1px;
    content: "";
    background: #dfe6ec;
}

.auth__google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 40px;
    margin-top: 16px;
    font-size: 15px;
    font-weight: 400;
    color: var(--ink-soft);
    text-decoration: none;
    background: var(--white);
    border: 1px solid #c9d3db;
    border-radius: 20px;
}

.auth__google:hover {
    border-color: var(--brand);
}

.auth-modal {
    width: min(480px, calc(100% - 24px));
    max-width: none;
    max-height: calc(100vh - 24px);
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
}

.auth-modal::backdrop {
    background: rgba(0, 40, 66, 0.55);
}

.auth-modal .auth {
    min-height: 0;
    padding: 0;
    background: none;
}

.auth-modal .auth__card {
    width: 100%;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
}

.auth-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 1;
    width: 36px;
    height: 36px;
    font-size: 28px;
    line-height: 1;
    color: var(--muted-label);
    background: none;
    border: 0;
    cursor: pointer;
}

.auth-modal__close:hover {
    color: var(--ink);
}
