.login-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
}

.login-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.login-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100% - 32px, 420px);
}

.login-modal__card {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
}

.login-modal__close {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--text-soft);
    box-shadow: 0 10px 24px rgba(25, 48, 95, 0.18);
    cursor: pointer;
}

body.has-login-modal {
    overflow: hidden;
}
