.auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.auth-form > * {
    animation: auth-form-enter 0.5s var(--ease-standard) backwards;
}

.auth-form__alt {
    color: var(--color-sidebar-muted);
    font-size: 14px;
    margin: 0;
}

.auth-form__alt a {
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: none;
}

.auth-form__back {
    align-items: center;
    align-self: flex-start;
    color: var(--color-accent);
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    gap: 6px;
    min-height: 36px;
    text-decoration: none;
}

.auth-form__back .icon {
    height: 16px;
    width: 16px;
}

.auth-form__chip {
    align-items: center;
    align-self: flex-start;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    color: var(--color-text);
    display: inline-flex;
    font-size: 13px;
    gap: 8px;
    padding: 5px 10px 5px 6px;
}

.auth-form__chip-mark {
    align-items: center;
    background: var(--color-accent-soft);
    border-radius: 6px;
    color: var(--color-accent);
    display: flex;
    font-size: 10px;
    font-weight: 700;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.auth-form__fields {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.auth-form__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form__lead {
    color: var(--color-sidebar-muted);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}

.auth-form__note {
    background: var(--color-page);
    border-radius: 10px;
    color: var(--color-text-soft);
    display: flex;
    flex-direction: column;
    font-size: 13px;
    gap: 8px;
    line-height: 1.5;
    padding: 14px 16px;
}

.auth-form__note strong {
    color: var(--color-heading);
    font-weight: 600;
}

.auth-form__row {
    display: grid;
    gap: 22px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-form__sent {
    align-items: center;
    background: var(--color-accent-soft);
    border-radius: 16px;
    color: var(--color-accent);
    display: flex;
    height: 56px;
    justify-content: center;
    width: 56px;
}

.auth-form__sent--success {
    background: var(--tone-success-bg);
    color: var(--color-success-dot);
}

.auth-form__sent--warning {
    background: var(--tone-warning-bg);
    color: var(--tone-warning-strong);
}

.auth-form__sent .icon {
    height: 26px;
    width: 26px;
}

.auth-form__invite {
    align-items: center;
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-line);
    border-radius: 12px;
    display: flex;
    gap: 14px;
    padding: 14px 16px;
}

.auth-form__invite-badge {
    align-items: center;
    background: var(--color-accent-soft);
    border: 2px solid var(--color-surface-subtle);
    border-radius: 50%;
    bottom: -6px;
    box-sizing: border-box;
    color: var(--color-accent);
    display: flex;
    font-size: 9px;
    font-weight: 700;
    height: 24px;
    justify-content: center;
    position: absolute;
    right: -6px;
    width: 24px;
}

.auth-form__invite-mark {
    align-items: center;
    background: var(--color-accent-soft);
    border-radius: 11px;
    color: var(--color-accent);
    display: flex;
    flex: none;
    font-size: 15px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    position: relative;
    width: 44px;
}

.auth-form__invite-text {
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.5;
}

.auth-form__invite-text strong {
    color: var(--color-heading);
    font-weight: 600;
}

.auth-form__link {
    align-items: center;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.auth-form__title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    text-wrap: balance;
}

.auth-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-form__ghost {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--color-accent);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    min-height: 44px;
    padding: 0 12px;
    text-decoration: none;
}

.auth-form__outline {
    background: var(--color-surface);
    border: 1px solid var(--color-field-line);
    border-radius: 10px;
    color: var(--color-heading);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    min-height: 44px;
    padding: 0 16px;
}

.auth-form__outline:disabled {
    color: var(--color-faint);
    cursor: not-allowed;
}

@keyframes auth-form-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

.auth-form > :nth-child(2) {
    animation-delay: 60ms;
}

.auth-form > :nth-child(3) {
    animation-delay: 120ms;
}

.auth-form > :nth-child(4) {
    animation-delay: 180ms;
}

.is-leaving .auth-shell__form,
.is-leaving .auth-shell__footer {
    opacity: 0;
    transition: opacity 0.25s var(--ease-standard);
}

@media (prefers-reduced-motion: reduce) {
    .auth-form > * {
        animation: none;
    }
}

@media (max-width: 480px) {
    .auth-form__row {
        grid-template-columns: 1fr;
    }

    .auth-form__title {
        font-size: 28px;
    }
}

.is-screen {
    background: var(--glass-solid);
}

.is-screen::before {
    display: none;
}

.screen-footer {
    bottom: 24px;
    color: var(--color-text);
    font-size: 13px;
    left: 0;
    margin: 0;
    position: absolute;
    text-align: center;
    width: 100%;
}
