.authservice {
    font-family: inherit;
}

.authservice a,
.authservice summary {
    text-decoration: none;
}

.authservice summary {
    list-style: none;
}

.authservice summary::-webkit-details-marker {
    display: none;
}

.authservice--header {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 20;
}

.authservice-login-menu,
.authservice-user-menu {
    position: relative;
}
.authservice--authenticated .authservice-user-menu {
    display: inline-flex;
    align-items: center;
    height: 42px;
}
.authservice-login-menu__toggle,
.authservice-user-menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 1.1rem;
    border: 1px solid rgba(52, 58, 64, .22);
    border-radius: 999px;
    background: #fff;
    color: #343a40;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(45, 46, 45, .06);
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.authservice--authenticated .authservice-user-menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 1.5px;
    border-radius: 50%;
    line-height: 1;
}

.authservice-login-menu__toggle:hover,
.authservice-login-menu__toggle:focus,
.authservice-login-menu[open] .authservice-login-menu__toggle,
.authservice-user-menu__toggle:hover,
.authservice-user-menu__toggle:focus,
.authservice-user-menu[open] .authservice-user-menu__toggle {
    border-color: #343a40;
    background: #343a40;
    color: #fff;
    outline: none;
    box-shadow: 0 10px 24px rgba(45, 46, 45, .14);
    transform: translateY(-1px);
}

.authservice-login-menu__icon {
    position: relative;
    display: none;
    width: 19px;
    height: 19px;
}

.authservice-login-menu__icon::before,
.authservice-login-menu__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    display: block;
    transform: translateX(-50%);
}

.authservice-login-menu__icon::before {
    top: 1px;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.authservice-login-menu__icon::after {
    bottom: 1px;
    width: 16px;
    height: 8px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 10px 10px 5px 5px;
}

.authservice-login-menu__panel,
.authservice-user-menu__panel {
    position: absolute;
    top: calc(100% + .55rem);
    right: 0;
    width: min(280px, calc(100vw - 2rem));
    padding: .85rem;
    border: 1px solid rgba(52, 58, 64, .12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(45, 46, 45, .18);
}

.authservice-login-menu__title,
.authservice-user-menu__title {
    margin-bottom: .65rem;
    color: #777d82;
    font-size: .86rem;
    font-weight: 500;
}

.authservice-provider-list {
    display: grid;
    gap: .65rem;
}

.authservice-provider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 46px;
    padding: .65rem .95rem;
    border: 1px solid rgba(52, 58, 64, .14);
    border-radius: 12px;
    background: #fff;
    color: #343a40;
    font-size: .98rem;
    font-weight: 500;
    line-height: 1.2;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}

.authservice-provider + .authservice-provider {
    margin-top: .55rem;
}

.authservice-provider:hover,
.authservice-provider:focus {
    color: #343a40;
    border-color: rgba(52, 58, 64, .3);
    box-shadow: 0 10px 24px rgba(45, 46, 45, .12);
    transform: translateY(-1px);
}

.authservice-provider__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
}

.authservice-provider__icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.authservice-provider--facebook {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.authservice-provider--facebook:hover,
.authservice-provider--facebook:focus {
    background: #166fe5;
    border-color: #166fe5;
    color: #fff;
}

.authservice-provider--facebook .authservice-provider__icon svg {
    fill: currentColor;
}

.authservice-provider--google {
    background: #fff;
}

.authservice-card {
    width: min(100%, 420px);
    padding: 1.25rem;
    border: 1px solid rgba(52, 58, 64, .12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(45, 46, 45, .1);
}

.authservice-card__title {
    margin-bottom: .35rem;
    color: #2d2e2d;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
}

.authservice-card__text {
    margin-bottom: 1rem;
    color: #777d82;
    font-size: .96rem;
    line-height: 1.45;
}

.authservice-user__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin-right: .5rem;
    border-radius: 50%;
    object-fit: cover;
    background: #eef2f4;
    color: #343a40;
    font-size: .9rem;
    font-weight: 600;
}

.authservice--authenticated .authservice-user__avatar {
    width: 39px;
    height: 39px;
    margin-right: 0;
}

.authservice-user-menu__name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.authservice-user-menu__name-full {
    margin-bottom: .75rem;
    color: #2d2e2d;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.authservice-user-menu__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 12px;
    background: #343a40;
    color: #fff;
    font-weight: 500;
}

.authservice-user-menu__logout:hover,
.authservice-user-menu__logout:focus {
    color: #fff;
    background: #2d2e2d;
}

.authservice-message {
    padding: 1rem;
    border: 1px solid rgba(52, 58, 64, .12);
    border-radius: 12px;
    background: #fff;
    color: #343a40;
}

@media (max-width: 991.98px) {
    .authservice-login-menu__toggle {
        min-height: 40px;
        padding: 0 1rem;
    }

    .authservice--authenticated .authservice-user-menu__toggle {
        border-radius: 50%;
    }

    .authservice-user-menu__name {
        display: none;
    }

    .authservice-user-menu__panel {
        right: 0;
    }
}
